Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android java.lang.RuntimeException-没有解决方案在工作_Android_Eclipse_Runtime Error - Fatal编程技术网

Android java.lang.RuntimeException-没有解决方案在工作

Android java.lang.RuntimeException-没有解决方案在工作,android,eclipse,runtime-error,Android,Eclipse,Runtime Error,如果我在测试手机上使用eclipse运行我的应用程序,我会收到此错误日志 你能告诉我该怎么办吗?我读了很多“解决方案”,但对我来说什么都不管用 10-09 11:49:28.953: E/AndroidRuntime(5552): FATAL EXCEPTION: main 10-09 11:49:28.953: E/AndroidRuntime(5552): java.lang.RuntimeException: Unable to instantiate activity Component

如果我在测试手机上使用eclipse运行我的应用程序,我会收到此错误日志

你能告诉我该怎么办吗?我读了很多“解决方案”,但对我来说什么都不管用

10-09 11:49:28.953: E/AndroidRuntime(5552): FATAL EXCEPTION: main
10-09 11:49:28.953: E/AndroidRuntime(5552): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{stealthychief.icon.pack.retro/stealthychief.icon.pack.retro.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "stealthychief.icon.pack.retro.MainActivity" on path: DexPathList[[zip file "/data/app/stealthychief.icon.pack.retro-1.apk"],nativeLibraryDirectories=[/data/app-lib/stealthychief.icon.pack.retro-1, /vendor/lib, /system/lib]]
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2255)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.app.ActivityThread.access$600(ActivityThread.java:153)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.os.Looper.loop(Looper.java:137)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.app.ActivityThread.main(ActivityThread.java:5289)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at java.lang.reflect.Method.invokeNative(Native Method)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at java.lang.reflect.Method.invoke(Method.java:525)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at dalvik.system.NativeStart.main(Native Method)
10-09 11:49:28.953: E/AndroidRuntime(5552): Caused by: java.lang.ClassNotFoundException: Didn't find class "stealthychief.icon.pack.retro.MainActivity" on path: DexPathList[[zip file "/data/app/stealthychief.icon.pack.retro-1.apk"],nativeLibraryDirectories=[/data/app-lib/stealthychief.icon.pack.retro-1, /vendor/lib, /system/lib]]
10-09 11:49:28.953: E/AndroidRuntime(5552):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
10-09 11:49:28.953: E/AndroidRuntime(5552):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2246)
10-09 11:49:28.953: E/AndroidRuntime(5552):     ... 11 more
这是我的android清单文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="14" android:versionName="2.1.3" android:installLocation="auto" package="stealthychief.icon.pack.retro"
  xmlns:android="http://schemas.android.com/apk/res/android">
      <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
    <uses-permission android:name="android.permission.SET_WALLPAPER" />
    <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <supports-screens android:anyDensity="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" />
    <application android:theme="@style/AppTheme" android:label="@string/app_name" android:icon="@drawable/theme_icon" android:allowBackup="true">
        <meta-data android:name="in.vineetsirohi.uccwtheme" android:value="2" />
        <activity android:label="@string/app_name" android:name="stealthychief.icon.pack.retro.MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:label="@string/blank" android:name="stealthychief.icon.pack.retro.activities.ActivityDump" android:launchMode="singleTask" android:noHistory="true" android:parentActivityName="stealthychief.icon.pack.retro.MainActivity">
            <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".MainActivity" />
        </activity>
        <activity android:name="stealthychief.icon.pack.retro.GetActivities" android:launchMode="singleTask" android:noHistory="true" android:parentActivityName="stealthychief.icon.pack.retro.MainActivity">
            <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".MainActivity" />
        </activity>
        <activity android:theme="@*android:style/Theme.NoTitleBar" android:name="stealthychief.icon.pack.retro.StartupHelper" android:launchMode="singleTask" android:noHistory="true" android:parentActivityName="stealthychief.icon.pack.retro.MainActivity">
            <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".MainActivity" />
        </activity>
        <activity android:label="@string/app_name" android:icon="@drawable/theme_icon" android:name="stealthychief.icon.pack.retro.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/app_name" android:icon="@drawable/theme_icon" android:name=".ADW">
            <intent-filter>
                <action android:name="org.adw.launcher.icons.ACTION_PICK_ICON" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="org.adw.launcher.THEMES" />
                <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>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <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" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <activity android:theme="@*android:style/Theme.NoTitleBar" android:label="@string/icons_title" android:icon="@drawable/theme_icon" android:name="stealthychief.icon.pack.retro.Icons" android:noHistory="true">
            <intent-filter>
                <action android:name="android.intent.action.GET_CONTENT" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.OPENABLE" />
                <data android:mimeType="image/*" />
            </intent-filter>
        </activity>
        <activity android:label="@string/blank" android:name=".ZoomActivity" android:parentActivityName=".MainActivity">
            <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".MainActivity" />
        </activity>
        <activity android:label="@string/blank" android:name="stealthychief.icon.pack.retro.uccw" android:launchMode="singleTask" android:noHistory="true" android:parentActivityName="stealthychief.icon.pack.retro.MainActivity">
            <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".MainActivity" />
        </activity>
        <activity android:label="@string/blank" android:name="stealthychief.icon.pack.retro.UccwSkins" android:parentActivityName="stealthychief.icon.pack.retro.MainActivity">
            <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".MainActivity" />
        </activity>
    </application>
</manifest>


谢谢你的帮助:)

你能给我们看一下你的主要活动的第一行吗:包…检查你的,包名,类名和包声明。在清单文件中声明包时,只需检查点(.)是否正确放置…?很抱歉,但我是安卓开发网的新手。你能告诉我在哪里找到主要活动包吗?“检查包裹名称…”的确切含义是什么?也许我不得不说,我用AndroidMultitool反编译了.apk文件,然后将其导入eclipse,运行它,我得到了这个错误。所以这个应用程序正在运行,但是如果我反编译它就没有了。你是说这行吗?“.class public Lstealthychief/icon/pack/retro/main活动;”