我搜索了问题,寻找问题的答案。我已经尝试过,重命名,进行干净的构建,使缓存/重启无效,并且我的想法已经用完了。任何建议,将不胜感激。我正在使用的唯一插件是“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>
这是logcat:
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行是有效名称。我也尝试使用名称的完整路径,结果是一样的。想法?
答案 0 :(得分:0)
包名称应以小写ASCII字母a-z开头。
Activities.SignUpActivity
等名称不遵循此模式。此外,如果您打算将其范围放在包中,请将名称以点.
开头。
具体而言,此错误是buildClassName()
返回null
的结果,试图从您的包名和活动名称中找出一个类名。