簡體   English   中英

我在dalvik.system.PathClassLoader.findClass中的Launcher主題java.lang.ClassNotFoundException上不斷出現此錯誤

[英]I keep getting this Error on my Launcher Themes java.lang.ClassNotFoundException in dalvik.system.PathClassLoader.findClass

以下是開發者控制台的實際錯誤。 我的啟動器主題有一個應用程序,所以用戶可以應用主題,聯系我等...

    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{bigdx.golauncher.serenity.red/bigdx.golauncher.serenity.red}: java.lang.ClassNotFoundException: bigdx.golauncher.serenity.red in loader dalvik.system.PathClassLoader[/data/app/bigdx.golauncher.serenity.red-1.apk]
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1624)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1722)
    at android.app.ActivityThread.access$1500(ActivityThread.java:124)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:974)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:130)
    at android.app.ActivityThread.main(ActivityThread.java:3821)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.ClassNotFoundException: bigdx.golauncher.serenity.red in         loader dalvik.system.PathClassLoader[/data/app/bigdx.golauncher.serenity.red-1.apk]
    at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1616)
    ... 11 more

這是我的應用程序的Android清單。 我第一次發布時忘記添加它

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="11" android:versionName="4.4"     package="bigdx.golauncher.serenity.red"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="7" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
<application android:theme="@android:style/Theme.NoTitleBar" android:label="@string/theme_title" android:icon="@drawable/theme_icon">
    <activity android:label="@string/app_name" android:name=".HelperActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="com.anddoes.launcher.THEME" />
        </intent-filter>
    </activity>
    <activity android:label="@string/theme_title" android:name=".Icons" />
    <activity android:label="@string/wp_theme_title" android:icon="@drawable/wallpaper_icon2" android:name=".Wallpaper" android:screenOrientation="nosensor" android:finishOnCloseSystemDialogs="true">
        <intent-filter>
            <action android:name="android.intent.action.SET_WALLPAPER" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity android:label="@string/theme_title" android:icon="@drawable/theme_icon" android:name=".Docks">
        <intent-filter>
            <action android:name="android.intent.action.PICK" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="image/*" />
        </intent-filter>
    </activity>
    <activity android:label="@string/theme_title" android:icon="@drawable/theme_icon" android:name="bigdx.golauncher.serenity.red.GoLauncher">
        <intent-filter>
            <action android:name="com.gau.go.launcherex.theme" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <action android:name="com.gau.go.launcherex.theme.gowidget" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <provider android:name="bigdx.golauncher.serenity.red.DocksProvider" android:authorities="bigdx.golauncher.serenity.red.DocksProvider" />
    <receiver android:label="@string/analog_gadget" android:icon="@drawable/ic_widget_analog_clock" android:name="bigdx.golauncher.serenity.red.AnalogClockWidget">
        <intent-filter>
            <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
        </intent-filter>
        <meta-data android:name="android.appwidget.oldName" android:value="com.android.deskclock.AnalogAppWidgetProvider" />
        <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" />
    </receiver>
</application>
</manifest>

問題是允許“HelperActivity”將Component設置為0,當用戶嘗試從市場或app抽屜打開應用程序時,它會導致應用程序出錯。 在幫助程序活動中,具有APEX意圖的是,當“HelperActivity”活動不再可訪問時,刪除了Apex兼容性。

這個帖子現在已經回答了。

對於更合適的替代,您可能希望使用SET_COMPONENT_ENABLED標志,但未啟用“KILL_APP”標志,但這是另一種情況。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM