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>