Application stops working on android

#1

Hi!
I tried to make apk of my project, but it seem not to be working.
These are the steps I have done:

  1. exp build:android
  2. send apk from telegram to my phone
  3. download and install apk
  4. app crashes before it opens

It works properly from url:
https://expo.io/@juhose/qc

This is my app.json:
{
“expo”: {
“name”: “City Quiz”,
“description”: “Quiz game”,
“slug”: “qc”,
“privacy”: “public”,
“sdkVersion”: “22.0.0”,
“version”: “1.0.0”,
“orientation”: “portrait”,
“primaryColor”: “#cccccc”,
“icon”: “./assets/images/icon.png”,
“splash”: {
“image”: “./assets/images/splash.png”,
“resizeMode”: “contain”,
“backgroundColor”: “#ffffff
},
“packagerOpts”: {
“assetExts”: [“ttf”]
},
“ios”: {
“supportsTablet”: true,
“bundleIdentifier”: “com.haju.cityquiz”
},
“android”: {
“package”: “com.haju.cityquiz”
}
}
}

4 Likes
Android App crash in start
Android build is crashing after added linking SOS
#2

HI!
The same for me and due to this (ie. adb logcat):

java.lang.ClassNotFoundException: Didn't find class "bolts.AppLinks" on path: DexPathList[[zip file "/data/app/com.sdl.solar-1/base.apk"],nativeLibraryDirectories=[/data/app/com.sdl.solar-1/lib/arm, /vendor/lib, /system/lib]]
[...]
java.lang.ClassNotFoundException: bolts.AppLinks

Any fixes in build soon?

Thanks,

4 Likes
#3

Same here

Didn't find class "bolts.AppLinks"

If you find some workaround I’m interested :confused:

Thanks

3 Likes
#4

Same issue, please fix it soon.
Thanks

2 Likes
#5

having same issue. Please resolve this ASAP.

1 Like
#6

mine crashes but it came from different place. below is the stacktrace

java.lang.NoClassDefFoundError:

 java.lang.NoClassDefFoundError: 
  at com.facebook.appevents.internal.SourceApplicationInfo$Factory.create (SourceApplicationInfo.java:131)
  at com.facebook.appevents.internal.ActivityLifecycleTracker.onActivityCreated (ActivityLifecycleTracker.java:131)
  at com.facebook.appevents.internal.ActivityLifecycleTracker$1.onActivityCreated (ActivityLifecycleTracker.java:77)
  at android.app.Application.dispatchActivityCreated (Application.java:219)
  at android.app.Activity.onCreate (Activity.java:1039)
  at android.support.v4.app.i.onCreate (BaseFragmentActivityGingerbread.java:54)
  at android.support.v4.app.p.onCreate (FragmentActivity.java:319)
  at host.exp.exponent.experience.d.onCreate (ReactNativeActivity.java:130)
  at host.exp.exponent.experience.a.onCreate (BaseExperienceActivity.java:58)
  at host.exp.exponent.experience.ExperienceActivity.onCreate (ExperienceActivity.java:110)
  at host.exp.exponent.experience.ShellAppActivity.onCreate (ShellAppActivity.java:20)
  at android.app.Activity.performCreate (Activity.java:6876)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1135)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3206)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3349)
  at android.app.ActivityThread.access$1100 (ActivityThread.java:221)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1794)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:158)
  at android.app.ActivityThread.main (ActivityThread.java:7224)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
Caused by: java.lang.ClassNotFoundException: 
  at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:511)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:469)
1 Like
#7

Similar thing happening here - the APK install is getting to around 85% complete on the installation and fails?

1 Like
#8

Happening to me as well, at least I know this is happening to everyone and they will probably fix this as soon as they can

1 Like
#9

is everyone on sdk22? if it’s happening on sdk21 I won’t bother downgrading just now.

1 Like
#10

@davidbova I’m on SDK19, so I think downgrade will do anything

1 Like
#11

@kilhog thank you for this

1 Like
#12

Tried on sdk21. Same

1 Like
#13

Joining the choir on this one.

SDK 22.x.x building for Android.

My stack trace:

java.lang.NoClassDefFoundError: Failed resolution of: Lbolts/AppLinks;
	at com.facebook.appevents.internal.SourceApplicationInfo$Factory.create(SourceApplicationInfo.java:131)
	at com.facebook.appevents.internal.ActivityLifecycleTracker.onActivityCreated(ActivityLifecycleTracker.java:131)
	at com.facebook.appevents.internal.ActivityLifecycleTracker$1.onActivityCreated(ActivityLifecycleTracker.java:77)
	at android.app.Application.dispatchActivityCreated(Application.java:195)
	at android.app.Activity.onCreate(Activity.java:918)
	at android.support.v4.app.i.onCreate(BaseFragmentActivityGingerbread.java:54)
	at android.support.v4.app.p.onCreate(FragmentActivity.java:319)
	at host.exp.exponent.experience.d.onCreate(ReactNativeActivity.java:130)
	at host.exp.exponent.experience.a.onCreate(BaseExperienceActivity.java:58)
	at host.exp.exponent.experience.ExperienceActivity.onCreate(ExperienceActivity.java:110)
	at host.exp.exponent.experience.ShellAppActivity.onCreate(ShellAppActivity.java:20)
	at android.app.Activity.performCreate(Activity.java:6237)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
	at android.app.ActivityThread.-wrap11(ActivityThread.java)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5417)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.ClassNotFoundException: Didn't find class "bolts.AppLinks" on path: DexPathList[[zip file "/data/app/dk.XYZ/base.apk"],nativeLibraryDirectories=[/data/app/dk.XYZ/lib/x86, /data/app/dk.XYZ/base.apk!/lib/x86, /vendor/lib, /system/lib]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
	... 23 more
	Suppressed: java.lang.ClassNotFoundException: bolts.AppLinks
		at java.lang.Class.classForName(Native Method)
		at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
		at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
		... 24 more
	Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
1 Like
#14

I have same problem and there are others reporting about this problem in expo developers slack channel.

1 Like
#15

Same issue, glad it’s not just me

1 Like
Standalone android instant crash
#16

Hey everyone, this should be fixed now. You’ll have to re-run exp build to get a new APK. Let me know if it still fails for you after trying again.

5 Likes
#17

Thank you @jesse ! :clap:

#18

I have a weird problem now.
I build the .apk with exp build:android, transfer the file to my phone and installs. The application works perfectly.

But, if I publish through Google Play (same .apk), and download and installs via Google Play, the application crashes on load. Before the application crashes, it does load up and I see the first screen and the application asks for permission to access the camera (this is expected), however, before I can press ‘accept’, the application crashes.

#19

It works now! Thanks! @jesse

#20

Thanks @jesse. It works now.