Error on signed apk


#1

Ok, just happened the weirdest thing: Im signing my project to submit to Play Store.
I just got surprised cause the signed/align app (using Intellij/Android Studio) causes a force close due to a class not found. When debugging, such error doesn’t happen.

The exception is:

E/AndroidRuntime(14990): Process: {APP REVERSE DOMAIN}, PID: 14990
E/AndroidRuntime(14990): java.lang.RuntimeException: Unable to instantiate activity 
	ComponentInfo{{APP REVERSE DOMAIN}/{APP REVERSE DOMAIN}.{APP NAME}}: 
	java.lang.ClassNotFoundException: 
	Didn't find class "{APP REVERSE DOMAIN}.{APP NAME}" on path: 
	DexPathList[
	[zip file "/data/app/{APP REVERSE DOMAIN}-1.apk"],
	nativeLibraryDirectories=[/data/app-lib/{APP REVERSE DOMAIN}-1, /vendor/lib, /system/lib]]
E/AndroidRuntime(14990): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2124)
E/AndroidRuntime(14990): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
E/AndroidRuntime(14990): 	at android.app.ActivityThread.access$800(ActivityThread.java:139)
E/AndroidRuntime(14990): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
E/AndroidRuntime(14990): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(14990): 	at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(14990): 	at android.app.ActivityThread.main(ActivityThread.java:5086)
E/AndroidRuntime(14990): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(14990): 	at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(14990): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime(14990): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime(14990): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(14990): Caused by: 
	java.lang.ClassNotFoundException: Didn't find class "{APP REVERSE DOMAIN}.{APP NAME}" on path: 
	DexPathList[[zip file "/data/app/{APP REVERSE DOMAIN}-1.apk"],
	nativeLibraryDirectories=[/data/app-lib/{APP REVERSE DOMAIN}-1, /vendor/lib, /system/lib]]
E/AndroidRuntime(14990): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime(14990): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime(14990): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime(14990): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1084)
E/AndroidRuntime(14990): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2115)
E/AndroidRuntime(14990): 	... 11 more
W/ActivityManager( 1065):   Force finishing activity {APP REVERSE DOMAIN}/.{APP NAME}

I just had to remove the app name. I unzipped the APK and I must say that I feel like missing something on it.
Does anyone has a good guide to sign the app on command line?


#2

Just like the pages title, a step-by-step guide.

http://support.brightcove.com/en/app-cloud/docs/step-step-guide-publishing-android-market-mac