我现在收到失败 [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] 错误
Posted
技术标签:
【中文标题】我现在收到失败 [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] 错误【英文标题】:Am now receiving Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] error 【发布时间】:2014-05-07 09:03:31 【问题描述】:我已经搜索了问题以寻找我的问题的答案。我已经尝试过,重命名,进行干净的构建,使缓存无效/重新启动,并且我的想法已经不多了。任何建议,将不胜感激。我使用的唯一插件是“android Property Initializer”。以下是我的清单和 logcat 的副本:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.brainbox.localledge.app">
<application
android:name=".ParseApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
<activity
android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:parentActivityName="Activities.LoginActivity"
android:name="Activities.SignUpActivity"
android:label="@string/title_activity_sign_up">
</activity>
<activity
android:name="Activities.LoginActivity"
android:label="@string/title_activity_login">
</activity>
<activity
android:parentActivityName="Activities.LoginActivity"
android:name="Activities.ResetPasswordActivity"
android:label="@string/title_activity_reset_password">
</activity>
</application>
</manifest>
这里是日志:
05-07 09:01:22.522 1771-1771/? D/AndroidRuntime﹕ >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
05-07 09:01:22.522 1771-1771/? D/AndroidRuntime﹕ CheckJNI is OFF
05-07 09:01:22.538 1771-1771/? D/dalvikvm﹕ Trying to load lib libjavacore.so 0x0
05-07 09:01:22.538 1771-1771/? D/dalvikvm﹕ Added shared lib libjavacore.so 0x0
05-07 09:01:22.546 1771-1771/? D/dalvikvm﹕ Trying to load lib libnativehelper.so 0x0
05-07 09:01:22.546 1771-1771/? D/dalvikvm﹕ Added shared lib libnativehelper.so 0x0
05-07 09:01:22.646 1771-1771/? D/AndroidRuntime﹕ Calling main entry com.android.commands.pm.Pm
05-07 09:01:22.678 1616-1616/com.brainbox.dropnotelitealpha.app E/EGL_genymotion﹕ egl: current context mark for deletion
05-07 09:01:22.694 479-500/system_process W/ActivityManager﹕ No content provider found for permission revoke: file:///data/local/tmp/com.brainbox.localledge.app
05-07 09:01:22.698 479-500/system_process W/ActivityManager﹕ No content provider found for permission revoke: file:///data/local/tmp/com.brainbox.localledge.app
05-07 09:01:22.698 479-500/system_process I/PackageManager﹕ Copying native libraries to /data/app-lib/vmdl-1380044634
05-07 09:01:22.710 479-500/system_process W/PackageParser﹕ /data/app/vmdl-1380044634.tmp (at Binary XML file line #11): <activity> does not have valid android:name
05-07 09:01:22.746 479-500/system_process D/dalvikvm﹕ GC_EXPLICIT freed 397K, 41% free 11120K/18828K, paused 11ms+2ms, total 33ms
05-07 09:01:22.750 1771-1771/? D/AndroidRuntime﹕ Shutting down VM
05-07 09:01:22.754 1771-1777/? D/jdwp﹕ Got wake-up signal, bailing out of select
05-07 09:01:22.754 1771-1777/? D/dalvikvm﹕ Debugger has detached; object registry had 1 entries
05-07 09:01:22.758 1771-1778/? E/cutils-trace﹕ Error opening trace file: No such file or directory (2)
如您所见,第 11 行是一个有效名称。我也尝试过使用名称的完整路径,结果是一样的。想法?
【问题讨论】:
【参考方案1】:包名应以小写 ASCII 字母 a-z 开头。
Activities.SignUpActivity
等名称不遵循此模式。此外,如果您打算在您的包中定义它的范围,请使名称以点 .
开头。
具体来说,这个错误是buildClassName()
返回null
的结果,试图从你的包名和活动名中找出一个类名。
【讨论】:
谢谢。我现在感觉很有教养。我什至没有想到要检查包裹。以上是关于我现在收到失败 [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] 错误的主要内容,如果未能解决你的问题,请参考以下文章