Emulating it, all goes well. But then, exporting the apk and installing it on different, real, phones, or after downloading the app from the playstore:
> 08-16 23:56:25.450: E/AndroidRuntime(5079): FATAL EXCEPTION: main
> 08-16 23:56:25.450: E/AndroidRuntime(5079):
> java.lang.RuntimeException: Unable to instantiate activity
> ComponentInfo{com.example/com.example.ActivityHome}:
> java.lang.ClassNotFoundException: Didn't find class
> "com.example.ActivityHome" on path: DexPathList[[zip file
> "/data/app/com.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example-1,
> /vendor/lib, /system/lib]] 08-16 23:56:25.450: E/AndroidRuntime(5079):
> at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
> 08-16 23:56:25.450: E/AndroidRuntime(5079): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
> 08-16 23:56:25.450: E/AndroidRuntime(5079): at
> android.app.ActivityThread.access$600(ActivityThread.java:141) 08-16
> 23:56:25.450: E/AndroidRuntime(5079): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
> 08-16 23:56:25.450: E/AndroidRuntime(5079): at
> android.os.Handler.dispatchMessage(Handler.java:99) 08-16
> 23:56:25.450: E/AndroidRuntime(5079): at
> android.os.Looper.loop(Looper.java:137) 08-16 23:56:25.450:
22 more...
I don't really know how to fix...