RizbIT
Member
Updated an app and then changed the target sdk version from 26 to 28 as that will soon be a requirement on Play (min target version).
Uploaded then from Android 9 user devices gets loads of crashes.
The crash info is as:
https://stackoverflow.com/questions/53513210/java-lang-noclassdeffounderror-in-android-9-pie
Im using trhe most upto date v20.xx.xx build tools and i do use google play services extension, and in the 'inject to gradle dependencies' box we have:
Uploaded then from Android 9 user devices gets loads of crashes.
The crash info is as:
Now doing a bit of research found someone else who used Android Studio had the same issue and found it was something to do with this:java.lang.RuntimeException:
at android.os.AsyncTask$3.done (AsyncTask.java:354)
at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383)
at java.util.concurrent.FutureTask.setException (FutureTask.java:252)
at java.util.concurrent.FutureTask.run (FutureTask.java:271)
at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)
Caused by: java.lang.NoClassDefFoundError:
at com.unity3d.ads.android.webapp.j.b (UnityAdsWebData.java:828)
at com.unity3d.ads.android.webapp.j.doInBackground (UnityAdsWebData.java:687)
at android.os.AsyncTask$2.call (AsyncTask.java:333)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
See here for the thread:If you are using com.google.android.gmslay-services-maps:16.0.0 or below and your app is targeting API level 28 (Android 9.0) or above, you must include the following declaration within the element of AndroidManifest.xml.
https://stackoverflow.com/questions/53513210/java-lang-noclassdeffounderror-in-android-9-pie
Im using trhe most upto date v20.xx.xx build tools and i do use google play services extension, and in the 'inject to gradle dependencies' box we have:
so is this the issue and if so what is the solution? Is there a newer version (>16.0.0) of the Play Services extension we can use? At some point this wil have to be fixed if we want to upload a build that targets SDK 28compile 'com.google.android.gmslay-services-games:9.6.1'
compile 'com.google.android.gmslay-services-ads:9.6.1'
compile 'com.google.android.gmslay-services-plus:9.6.1'
compile 'com.google.android.gmslay-services-gcm:9.6.1'