在运行新安装的应用程序时,我在logcat中找到了这条Warning
消息:
W/PackageManager( 1233): Couldn't remove dex file for package: at location /data/app/xx.yy.zz-1/base.apk, retcode=-1
I/SmartHeartBeat( 1233): listenAppUpdate, package: xx.yy.zz has been Updated
W/PackageParser( 2909): Unknown element under <manifest>: meta-data at /storage/emulated/0/xxx/zz.apk Binary XML file line #143
尝试追踪标记为meta-data
的有问题的Binary XML file line #143
元素,我发现以下内容:
# aapt l -a zz.apk
AndroidManifest.xml
META-INF/CERT.RSA
META-INF/CERT.SF
META-INF/MANIFEST.MF
...
Android manifest:
N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
...
A: platformBuildVersionCode=(type 0x10)0x19 (Raw: "25")
A: platformBuildVersionName="7.1.1" (Raw: "7.1.1")
...
E: meta-data (line=143)
A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION")
A: android:value(0x01010024)="25.3.1" (Raw: "25.3.1")
...
但我的AndroidManifest.xml
中没有这样的内容,而我的gradle.build
文件中只有“25.3.1”的唯一引用,这是的依赖行Android支持库:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:25.3.1'
...
}
问题是什么?为什么会出现此警告? (我该如何解决?)