Saturday, 15 January 2011

apk - Android Beta app crashes when opening from Playstore (but works otherwise) -



apk - Android Beta app crashes when opening from Playstore (but works otherwise) -

new developer here.

i finished app i'm working on, , published beta version play store. before sending beta testers, sent link myself see if works. when clicked link , installed app play store appears have loaded device fine. when open app, crashes before opens. "unfortunately, app name has stopped" message.

just double check , create didn't mess lastly min before publishing, uninstalled , ran app device using android studio , runs fine.

the thing can think may causing few things did before building apk.

first, in build.gradle file inserted "optimize" line of code:

buildtypes { release { runproguard true proguardfiles getdefaultproguardfile('proguard-android-optimize.txt'), 'proguard-rules.pro' } }

then in proguard-rules.pro added following:

-assumenosideeffects class android.util.log { public static boolean isloggable(java.lang.string, int); public static int v(...); public static int i(...); public static int w(...); public static int d(...); public static int e(...); } -ignorewarnings

the "assumenosideeffects" line - understand - weed out logs don't run in play store version.

i added "ignorewarnings" line because on building apk, got 78 (yellow) warnings, of had facebook. have no facebook integration , never attempted write code integrate facebook. assumed adding ignorewarnings line wouldn't impede function of app. mistaken?

so that's problem. ideas isue may be?

thanks much help. have benefited lot community, , appreciate much :)

edit

stack trace below:

java.lang.runtimeexception: unable create application com.offyear.www.offyear.application: java.lang.illegalargumentexception: default constructor class com.a.lb not accessible. @ android.app.activitythread.handlebindapplication(activitythread.java:4447) @ android.app.activitythread.access$1300(activitythread.java:141) @ android.app.activitythread$h.handlemessage(activitythread.java:1316) @ android.os.handler.dispatchmessage(handler.java:99) @ android.os.looper.loop(looper.java:137) @ android.app.activitythread.main(activitythread.java:5103) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:525) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:737) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:553) @ dalvik.system.nativestart.main(native method) caused by: java.lang.illegalargumentexception: default constructor class com.a.lb not accessible. @ com.a.gy.c(unknown source) @ com.a.gy.c(unknown source) @ com.a.ed.a(unknown source) @ com.offyear.www.offyear.application.oncreate(unknown source) @ android.app.instrumentation.callapplicationoncreate(instrumentation.java:1007) @ android.app.activitythread.handlebindapplication(activitythread.java:4444) ... 10 more

ok, not sure source of problem was, did resolve issue - figured i'd post in case else runs similar trouble.

apparently in proguard code messing things up. deleted proguard code, set runproguard false in gradle , deleted "optimize."

app installed , ran google play no problem after that.

android apk beta

No comments:

Post a Comment