在code已停止工作 - 抛出java.lang.ClassNotFoundException装载机dalvik.system.PathClassLoader [英] the code has stopped working - java.lang.ClassNotFoundException in loader dalvik.system.PathClassLoader

查看:157
本文介绍了在code已停止工作 - 抛出java.lang.ClassNotFoundException装载机dalvik.system.PathClassLoader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天是糟糕的一天。我尝试没有成功测试了Android工作室。现在的问题是,全code我已经,停止工作。我做的:

  • 更新ADT和SDK
  • 重新安装月食
  • 从SVN拯救源$ C ​​$ C
  • 重新构建完整的应用程序相互依存
  • 在解决人的一个环节出现问题

在那一刻,我可以吃午饭的应用程序到我的电话,但一个问题,分析出现。我评论的所有引用到,但现在...... Android无法找到我自己的活动!问题出在哪里?在源$ C ​​$ C肯定是不...

请帮忙!我该怎么办?

感谢你!

  1月5日至25日:24:46.393:E / AndroidRuntime(7572):致命异常:主要
一月五号至25日:24:46.393:E / AndroidRuntime(7572):java.lang.RuntimeException的:无法实例活动ComponentInfo {net.asturdroid.datamovie / net.asturdroid.datamovie.ui.SplashScreen}:抛出java.lang.ClassNotFoundException :net.asturdroid.datamovie.ui.SplashScreen装载机dalvik.system.PathClassLoader [/mnt/asec/net.asturdroid.datamovie-1/pkg.apk]
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2709)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.app.ActivityThread.access $ 2300(ActivityThread.java:135)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:2136)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.os.Handler.dispatchMessage(Handler.java:99)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.os.Looper.loop(Looper.java:144)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.app.ActivityThread.main(ActivityThread.java:4937)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在java.lang.reflect.Method.invokeNative(本机方法)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在java.lang.reflect.Method.invoke(Method.java:521)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:858)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在dalvik.system.NativeStart.main(本机方法)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):抛出java.lang.ClassNotFoundException:产生的原因net.asturdroid.datamovie.ui.SplashScreen装载机dalvik.system.PathClassLoader [/mnt/asec/net.asturdroid .datamovie-1 / pkg.apk]
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在java.lang.ClassLoader.loadClass(ClassLoader.java:573)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在java.lang.ClassLoader.loadClass(ClassLoader.java:532)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.app.Instrumentation.newActivity(Instrumentation.java:1036)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2701)
一月五号至25日:24:46.393:E / AndroidRuntime(7572):11 ...更多
 

manifiest.xml

 < XML版本=1.0编码=UTF-8&GT?;
<舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
    的xmlns:工具=htt​​p://schemas.android.com/tool​​s
    包=net.asturdroid.datamovie
    机器人:INSTALLLOCATION =preferExternal
    安卓版code =1
    机器人:VERSIONNAME =1.0>

    <用途-SDK
        安卓的minSdkVersion =8
        机器人:targetSdkVersion =17/>

    <使用-权限的Andr​​oid:名称=android.permission.INTERNET对/>
    <使用-权限的Andr​​oid:名称=android.permission.ACCESS_NETWORK_STATE/>
    <使用-权限的Andr​​oid:名称=android.permission.WRITE_EXTERNAL_STORAG​​E/>

    <应用
        机器人:名称=net.asturdroid.datamovie.App
        机器人:allowBackup =真
        机器人:图标=@可绘制/ ic_launcher
        机器人:标签=@字符串/ APP_NAME
        机器人:screenOrientation =nosensor
        机器人:主题=@风格/ Theme.AppTheme>
        <活动
            机器人:名称=。ui.SplashScreen
            机器人:configChanges =区域|的layoutDirection
            机器人:标签=@字符串/ APP_NAME>
            <意向滤光器>
                <作用机器人:名称=android.intent.action.MAIN/>

                <类机器人:名称=android.intent.category.LAUNCHER/>
            &所述; /意图滤光器>
        < /活性GT;
        <活动
            机器人:名称=。ui.MainActivity
            机器人:configChanges =区域|的layoutDirection
            机器人:标签=@字符串/ APP_NAME>
        < /活性GT;
        <活动
            机器人:名称=。ui.about.AppInfoActivity
            机器人:configChanges =区域|的layoutDirection
            机器人:标签=@字符串/ APP_NAME>
        < /活性GT;
        <活动
            机器人:名称=。ui.GenericFragmentActivity
            机器人:configChanges =区域|的layoutDirection
            机器人:标签=@字符串/ APP_NAME>
        < /活性GT;
        <活动
            机器人:名称=。ui.MovieDetailActivity
            机器人:configChanges =区域|的layoutDirection
            机器人:标签=@字符串/ APP_NAME
            机器人:uiOptions =splitActionBarWhenNarrow>
        < /活性GT;
        <活动
            机器人:名称=。ui.ListActivity
            机器人:configChanges =区域|的layoutDirection
            机器人:uiOptions =splitActionBarWhenNarrow>
        < /活性GT;

    < /用途>

< /舱单>
 

类路径:

 < XML版本=1.0编码=UTF-8&GT?;
<类路径>
    < classpathentry KIND =SRC路径=SRC/>
    < classpathentry KIND =CON路径=com.android.ide.eclipse.adt.ANDROID_FRAMEWORK/>
    < classpathentry KIND =CON路径=com.android.ide.eclipse.adt.LIBRARIES/>
    < classpathentry KIND =SRC路径=根/>
    < classpathentry KIND =CON路径=com.android.ide.eclipse.adt.DEPENDENCIES/>
    < classpathentry KIND =输出路径=斌/班/>
< /类路径>
 

解决方案

项目/属性/ Java构建路径/订单和出口 - 确保有一个在Android的依赖关系的正面和支持库进行检查,如果你使用它。

Today was a bad day. I tried to test the Android Studio with no success. The problem now, is that the full code I has, stopped working. I do that:

  • Updated ADT and SDK
  • Reinstall eclipse
  • Rescue the source code from SVN
  • Build again complete application with each dependency
  • Solve al link problems

In that moment, I could lunch the application into my phone but a problem with Analytics appears. I comment all references to that, but now... Android can't find my own activity!! Where is the problem? In source code sure isn't...

Please help! What can I do?

Thank you!!

05-25 01:24:46.393: E/AndroidRuntime(7572): FATAL EXCEPTION: main
05-25 01:24:46.393: E/AndroidRuntime(7572): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{net.asturdroid.datamovie/net.asturdroid.datamovie.ui.SplashScreen}: java.lang.ClassNotFoundException: net.asturdroid.datamovie.ui.SplashScreen in loader dalvik.system.PathClassLoader[/mnt/asec/net.asturdroid.datamovie-1/pkg.apk]
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2709)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.app.ActivityThread.access$2300(ActivityThread.java:135)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.os.Looper.loop(Looper.java:144)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.app.ActivityThread.main(ActivityThread.java:4937)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at java.lang.reflect.Method.invokeNative(Native Method)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at java.lang.reflect.Method.invoke(Method.java:521)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at dalvik.system.NativeStart.main(Native Method)
05-25 01:24:46.393: E/AndroidRuntime(7572): Caused by: java.lang.ClassNotFoundException: net.asturdroid.datamovie.ui.SplashScreen in loader dalvik.system.PathClassLoader[/mnt/asec/net.asturdroid.datamovie-1/pkg.apk]
05-25 01:24:46.393: E/AndroidRuntime(7572):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.app.Instrumentation.newActivity(Instrumentation.java:1036)
05-25 01:24:46.393: E/AndroidRuntime(7572):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2701)
05-25 01:24:46.393: E/AndroidRuntime(7572):     ... 11 more

manifiest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="net.asturdroid.datamovie"
    android:installLocation="preferExternal"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:name="net.asturdroid.datamovie.App"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:screenOrientation="nosensor"
        android:theme="@style/Theme.AppTheme" >
        <activity
            android:name=".ui.SplashScreen"
            android:configChanges="locale|layoutDirection"
            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:name=".ui.MainActivity"
            android:configChanges="locale|layoutDirection"
            android:label="@string/app_name" >
        </activity>
        <activity
            android:name=".ui.about.AppInfoActivity"
            android:configChanges="locale|layoutDirection"
            android:label="@string/app_name" >
        </activity>
        <activity
            android:name=".ui.GenericFragmentActivity"
            android:configChanges="locale|layoutDirection"
            android:label="@string/app_name" >
        </activity>
        <activity
            android:name=".ui.MovieDetailActivity"
            android:configChanges="locale|layoutDirection"
            android:label="@string/app_name"
            android:uiOptions="splitActionBarWhenNarrow" >
        </activity>
        <activity
            android:name=".ui.ListActivity"
            android:configChanges="locale|layoutDirection"
            android:uiOptions="splitActionBarWhenNarrow" >
        </activity>

    </application>

</manifest>

classpath:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
    <classpathentry kind="output" path="bin/classes"/>
</classpath>

解决方案

Project/Properties/Java Build Path/Order and Export -- Make sure there's a check in front of Android Dependencies and the support library, if you use it.

这篇关于在code已停止工作 - 抛出java.lang.ClassNotFoundException装载机dalvik.system.PathClassLoader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆