因此,在尝试获取签名的APK时遇到了这个问题,我在自己的strings.xml中引用了它,并尝试删除它并重写它,似乎没有任何作用,这就是我的Manifest.XML.我在编码和内容方面有点菜鸟,所以简单而透彻的解释会有所帮助
package="com.chattr.chattr"
android:versionCode="1"
android:versionName="1.0" >
android:minSdkVersion="15"
android:targetSdkVersion="21" />
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:name="com.chattr.chattr.MainActivity"
android:label="@string/app_name" >
android:name="com.chattr.chattr.LoginActivity"
android:label="@string/title_activity_login"
android:windowSoftInputMode="adjustResize|stateVisible" >
android:name="com.chattr.chattr.ListUsersActivity"
android:label="@string/title_activity_list_users" >
android:name="com.chattr.chattr.MessagingActivity"
android:label="@string/title_activity_messaging" >
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
这是我的风格. XML文件
MessagingTutorial
Sinch Messaging Tutorial
USERNAME
PASSWORD
ListUsersActivity
Hello world!
Settings
Message...
Logout
Messaging
解决方法:
您的清单引用了在res / values下资源文件中不存在的字符串资源(@ string / foo).例如,您发布的资源文件中缺少字符串title_activity_login和title_activity_messaging.
标签:compiler-errors,xml,android
来源: https://codeday.me/bug/20191028/1951512.html