logcat警告`< manifest>:meta-data`下的未知元素是什么意思? [英] What does the logcat warning `Unknown element under <manifest>: meta-data` mean?
问题描述
在运行新安装的应用程序时,我在logcat中发现了 Warning
消息:
While running a a freshly installed app, I find this Warning
messages in the logcat:
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
试图追查违规的元数据
元素标记为二进制XML文件行#143
,我找到以下内容:
Trying to track down the offending meta-data
element tagged Binary XML file line #143
, I find the following:
# 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
,唯一对25.3.1的引用是在我的 gradle.build
文件中,它们是 Android支持库:
But I don't have anything like this in my AndroidManifest.xml
and the only other reference to "25.3.1" is in my gradle.build
file, which are the dependency lines for the Android Support Libraries:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:25.3.1'
...
}
出现此问题的原因是什么?
(我如何解决此问题? p>
What is the problem and why does this warning occur? (How do I resolve it?)
推荐答案
关闭 即时运行 功能可以解决问题。
Turning off instant run feature would resolve the issue.
这篇关于logcat警告`< manifest>:meta-data`下的未知元素是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!