Android error: dalvik.system.BaseDexClassLoader.findClass
Currently in my production app I am noticing this error:
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2648)
at android.app.ActivityThread.access$1700 (ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1359)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:136)
at android.app.ActivityThread.main (ActivityThread.java:5584)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
at dalvik.system.NativeStart.main (Native Method)
and found out it is because of conflicting libraries. I am using around 7 and they all are necessary for the app to function correctly. I did the ./gradlew app:dependencies
and saw a bunch of conflicts (mainly the android.support
and also google-services
) and I have to resolve them now with the exclude tag.
My question is how do I properly set the correct versions? Do I force all libs to go to the smallest version of a certain lib or do I just force them all to the latest?
Sorry for the noob question I am fairly new to managin libs in android.
EDIT: more of the stacktrace
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass (ClassLoader.java:497)
at java.lang.ClassLoader.loadClass (ClassLoader.java:457)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2643)
Also a similar error but with different stack trace.
app/build.gradle:
project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion 28
buildToolsVersion "28.0.2"
defaultConfig {
applicationId "com.lisdoworker"
minSdkVersion 18
targetSdkVersion 28
versionCode 15
versionName "1.1"
ndk {
abiFilters "armeabi-v7a", "x86"
}
manifestPlaceholders = [
tipsiStripeRedirectScheme: "example"
]
multiDexEnabled true
}
signingConfigs {
release {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
dexOptions {
jumboMode true
}
}
dependencies {
// react-native-firebase
implementation project(':react-native-firebase')
implementation "com.google.firebase:firebase-core:16.0.4"
implementation "com.google.firebase:firebase-messaging:17.3.4"
implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
implementation(project(':react-native-google-places')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-places'
exclude group: 'com.google.android.gms', module: 'play-services-location'
}
implementation 'com.google.android.gms:play-services-base:16.+'
implementation 'com.google.android.gms:play-services-places:16.+'
implementation 'com.google.android.gms:play-services-location:16.+'
implementation 'com.google.android.gms:play-services-wallet:16.+'
implementation 'com.google.android.gms:play-services-identity:16.+'
implementation project(':tipsi-stripe')
implementation project(':react-native-linear-gradient')
implementation project(':react-native-fast-image')
implementation project(':react-native-vector-icons')
implementation project(':react-native-image-picker')
implementation project(':react-native-fetch-blob')
implementation project(':react-native-fbsdk')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:27.1.0"
implementation "com.facebook.react:react-native:+" // From node_modules
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
android android-gradle
|
show 3 more comments
Currently in my production app I am noticing this error:
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2648)
at android.app.ActivityThread.access$1700 (ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1359)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:136)
at android.app.ActivityThread.main (ActivityThread.java:5584)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
at dalvik.system.NativeStart.main (Native Method)
and found out it is because of conflicting libraries. I am using around 7 and they all are necessary for the app to function correctly. I did the ./gradlew app:dependencies
and saw a bunch of conflicts (mainly the android.support
and also google-services
) and I have to resolve them now with the exclude tag.
My question is how do I properly set the correct versions? Do I force all libs to go to the smallest version of a certain lib or do I just force them all to the latest?
Sorry for the noob question I am fairly new to managin libs in android.
EDIT: more of the stacktrace
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass (ClassLoader.java:497)
at java.lang.ClassLoader.loadClass (ClassLoader.java:457)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2643)
Also a similar error but with different stack trace.
app/build.gradle:
project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion 28
buildToolsVersion "28.0.2"
defaultConfig {
applicationId "com.lisdoworker"
minSdkVersion 18
targetSdkVersion 28
versionCode 15
versionName "1.1"
ndk {
abiFilters "armeabi-v7a", "x86"
}
manifestPlaceholders = [
tipsiStripeRedirectScheme: "example"
]
multiDexEnabled true
}
signingConfigs {
release {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
dexOptions {
jumboMode true
}
}
dependencies {
// react-native-firebase
implementation project(':react-native-firebase')
implementation "com.google.firebase:firebase-core:16.0.4"
implementation "com.google.firebase:firebase-messaging:17.3.4"
implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
implementation(project(':react-native-google-places')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-places'
exclude group: 'com.google.android.gms', module: 'play-services-location'
}
implementation 'com.google.android.gms:play-services-base:16.+'
implementation 'com.google.android.gms:play-services-places:16.+'
implementation 'com.google.android.gms:play-services-location:16.+'
implementation 'com.google.android.gms:play-services-wallet:16.+'
implementation 'com.google.android.gms:play-services-identity:16.+'
implementation project(':tipsi-stripe')
implementation project(':react-native-linear-gradient')
implementation project(':react-native-fast-image')
implementation project(':react-native-vector-icons')
implementation project(':react-native-image-picker')
implementation project(':react-native-fetch-blob')
implementation project(':react-native-fbsdk')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:27.1.0"
implementation "com.facebook.react:react-native:+" // From node_modules
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
android android-gradle
That's unlikely to be the cause of your problem. Please post the full stack trace (this is likely only half of it). But there's nothing here that even remotely looks like a library conflict problem.
– Gabe Sechan
Dec 31 '18 at 0:26
Even if not the cause of this, you should resolve the library conflicts. Usually, you would want to keep the later ones. Maybe also upgrade some libs that do not directly conflict (but cause conflicts by bringing in old dependencies.)
– Henry
Dec 31 '18 at 7:59
@GabeSechan I updated the stacktrace I found on the Google Play Console.
– Walter Monecke
Dec 31 '18 at 16:13
@Henry What if some libraries are not available in the later versions of some other libs? Do I downgrade everything to the most latest version that everything is compatible with?
– Walter Monecke
Dec 31 '18 at 16:16
What do you mean "not available in the later versions of some other libs"? They are no longer used?
– Henry
Dec 31 '18 at 16:19
|
show 3 more comments
Currently in my production app I am noticing this error:
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2648)
at android.app.ActivityThread.access$1700 (ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1359)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:136)
at android.app.ActivityThread.main (ActivityThread.java:5584)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
at dalvik.system.NativeStart.main (Native Method)
and found out it is because of conflicting libraries. I am using around 7 and they all are necessary for the app to function correctly. I did the ./gradlew app:dependencies
and saw a bunch of conflicts (mainly the android.support
and also google-services
) and I have to resolve them now with the exclude tag.
My question is how do I properly set the correct versions? Do I force all libs to go to the smallest version of a certain lib or do I just force them all to the latest?
Sorry for the noob question I am fairly new to managin libs in android.
EDIT: more of the stacktrace
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass (ClassLoader.java:497)
at java.lang.ClassLoader.loadClass (ClassLoader.java:457)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2643)
Also a similar error but with different stack trace.
app/build.gradle:
project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion 28
buildToolsVersion "28.0.2"
defaultConfig {
applicationId "com.lisdoworker"
minSdkVersion 18
targetSdkVersion 28
versionCode 15
versionName "1.1"
ndk {
abiFilters "armeabi-v7a", "x86"
}
manifestPlaceholders = [
tipsiStripeRedirectScheme: "example"
]
multiDexEnabled true
}
signingConfigs {
release {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
dexOptions {
jumboMode true
}
}
dependencies {
// react-native-firebase
implementation project(':react-native-firebase')
implementation "com.google.firebase:firebase-core:16.0.4"
implementation "com.google.firebase:firebase-messaging:17.3.4"
implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
implementation(project(':react-native-google-places')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-places'
exclude group: 'com.google.android.gms', module: 'play-services-location'
}
implementation 'com.google.android.gms:play-services-base:16.+'
implementation 'com.google.android.gms:play-services-places:16.+'
implementation 'com.google.android.gms:play-services-location:16.+'
implementation 'com.google.android.gms:play-services-wallet:16.+'
implementation 'com.google.android.gms:play-services-identity:16.+'
implementation project(':tipsi-stripe')
implementation project(':react-native-linear-gradient')
implementation project(':react-native-fast-image')
implementation project(':react-native-vector-icons')
implementation project(':react-native-image-picker')
implementation project(':react-native-fetch-blob')
implementation project(':react-native-fbsdk')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:27.1.0"
implementation "com.facebook.react:react-native:+" // From node_modules
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
android android-gradle
Currently in my production app I am noticing this error:
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2648)
at android.app.ActivityThread.access$1700 (ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1359)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:136)
at android.app.ActivityThread.main (ActivityThread.java:5584)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
at dalvik.system.NativeStart.main (Native Method)
and found out it is because of conflicting libraries. I am using around 7 and they all are necessary for the app to function correctly. I did the ./gradlew app:dependencies
and saw a bunch of conflicts (mainly the android.support
and also google-services
) and I have to resolve them now with the exclude tag.
My question is how do I properly set the correct versions? Do I force all libs to go to the smallest version of a certain lib or do I just force them all to the latest?
Sorry for the noob question I am fairly new to managin libs in android.
EDIT: more of the stacktrace
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass (ClassLoader.java:497)
at java.lang.ClassLoader.loadClass (ClassLoader.java:457)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2643)
Also a similar error but with different stack trace.
app/build.gradle:
project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion 28
buildToolsVersion "28.0.2"
defaultConfig {
applicationId "com.lisdoworker"
minSdkVersion 18
targetSdkVersion 28
versionCode 15
versionName "1.1"
ndk {
abiFilters "armeabi-v7a", "x86"
}
manifestPlaceholders = [
tipsiStripeRedirectScheme: "example"
]
multiDexEnabled true
}
signingConfigs {
release {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
dexOptions {
jumboMode true
}
}
dependencies {
// react-native-firebase
implementation project(':react-native-firebase')
implementation "com.google.firebase:firebase-core:16.0.4"
implementation "com.google.firebase:firebase-messaging:17.3.4"
implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
implementation(project(':react-native-google-places')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-places'
exclude group: 'com.google.android.gms', module: 'play-services-location'
}
implementation 'com.google.android.gms:play-services-base:16.+'
implementation 'com.google.android.gms:play-services-places:16.+'
implementation 'com.google.android.gms:play-services-location:16.+'
implementation 'com.google.android.gms:play-services-wallet:16.+'
implementation 'com.google.android.gms:play-services-identity:16.+'
implementation project(':tipsi-stripe')
implementation project(':react-native-linear-gradient')
implementation project(':react-native-fast-image')
implementation project(':react-native-vector-icons')
implementation project(':react-native-image-picker')
implementation project(':react-native-fetch-blob')
implementation project(':react-native-fbsdk')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:27.1.0"
implementation "com.facebook.react:react-native:+" // From node_modules
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
android android-gradle
android android-gradle
edited Dec 31 '18 at 17:48
Walter Monecke
asked Dec 30 '18 at 23:46
Walter MoneckeWalter Monecke
610415
610415
That's unlikely to be the cause of your problem. Please post the full stack trace (this is likely only half of it). But there's nothing here that even remotely looks like a library conflict problem.
– Gabe Sechan
Dec 31 '18 at 0:26
Even if not the cause of this, you should resolve the library conflicts. Usually, you would want to keep the later ones. Maybe also upgrade some libs that do not directly conflict (but cause conflicts by bringing in old dependencies.)
– Henry
Dec 31 '18 at 7:59
@GabeSechan I updated the stacktrace I found on the Google Play Console.
– Walter Monecke
Dec 31 '18 at 16:13
@Henry What if some libraries are not available in the later versions of some other libs? Do I downgrade everything to the most latest version that everything is compatible with?
– Walter Monecke
Dec 31 '18 at 16:16
What do you mean "not available in the later versions of some other libs"? They are no longer used?
– Henry
Dec 31 '18 at 16:19
|
show 3 more comments
That's unlikely to be the cause of your problem. Please post the full stack trace (this is likely only half of it). But there's nothing here that even remotely looks like a library conflict problem.
– Gabe Sechan
Dec 31 '18 at 0:26
Even if not the cause of this, you should resolve the library conflicts. Usually, you would want to keep the later ones. Maybe also upgrade some libs that do not directly conflict (but cause conflicts by bringing in old dependencies.)
– Henry
Dec 31 '18 at 7:59
@GabeSechan I updated the stacktrace I found on the Google Play Console.
– Walter Monecke
Dec 31 '18 at 16:13
@Henry What if some libraries are not available in the later versions of some other libs? Do I downgrade everything to the most latest version that everything is compatible with?
– Walter Monecke
Dec 31 '18 at 16:16
What do you mean "not available in the later versions of some other libs"? They are no longer used?
– Henry
Dec 31 '18 at 16:19
That's unlikely to be the cause of your problem. Please post the full stack trace (this is likely only half of it). But there's nothing here that even remotely looks like a library conflict problem.
– Gabe Sechan
Dec 31 '18 at 0:26
That's unlikely to be the cause of your problem. Please post the full stack trace (this is likely only half of it). But there's nothing here that even remotely looks like a library conflict problem.
– Gabe Sechan
Dec 31 '18 at 0:26
Even if not the cause of this, you should resolve the library conflicts. Usually, you would want to keep the later ones. Maybe also upgrade some libs that do not directly conflict (but cause conflicts by bringing in old dependencies.)
– Henry
Dec 31 '18 at 7:59
Even if not the cause of this, you should resolve the library conflicts. Usually, you would want to keep the later ones. Maybe also upgrade some libs that do not directly conflict (but cause conflicts by bringing in old dependencies.)
– Henry
Dec 31 '18 at 7:59
@GabeSechan I updated the stacktrace I found on the Google Play Console.
– Walter Monecke
Dec 31 '18 at 16:13
@GabeSechan I updated the stacktrace I found on the Google Play Console.
– Walter Monecke
Dec 31 '18 at 16:13
@Henry What if some libraries are not available in the later versions of some other libs? Do I downgrade everything to the most latest version that everything is compatible with?
– Walter Monecke
Dec 31 '18 at 16:16
@Henry What if some libraries are not available in the later versions of some other libs? Do I downgrade everything to the most latest version that everything is compatible with?
– Walter Monecke
Dec 31 '18 at 16:16
What do you mean "not available in the later versions of some other libs"? They are no longer used?
– Henry
Dec 31 '18 at 16:19
What do you mean "not available in the later versions of some other libs"? They are no longer used?
– Henry
Dec 31 '18 at 16:19
|
show 3 more comments
1 Answer
1
active
oldest
votes
due to minSdkVersion 18
you have to add a dependency to com.android.support:multidex:1.0.3
for proper Dalvik
VM support.
the Manifest.xml
needs to have the Application
class referenced, too.
and to answer the actual question; first of all remove this one line:
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
then update buildToolsVersion
to 28.0.3
and get rid of these 16.+
version numbers.
static version numbers lead to rather reproducible results, compared to the +
notation. alike this one has to manually update these version numbers - but at least one knows which version number was updated and to which version number one has to to revert, in case of issues (it's worth the effort).
com.android.support:appcompat-v7:27.1.0
could also updated to 28.0.0
.
after that Android Studio should underline some dependencies in red - providing a clue which com.google.android.gms
and com.android.support
may need to be excluded - or added. eg. support-v4
is a common candidate for exclusion - but it has to be added at a matching version.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53982361%2fandroid-error-dalvik-system-basedexclassloader-findclass%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
due to minSdkVersion 18
you have to add a dependency to com.android.support:multidex:1.0.3
for proper Dalvik
VM support.
the Manifest.xml
needs to have the Application
class referenced, too.
and to answer the actual question; first of all remove this one line:
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
then update buildToolsVersion
to 28.0.3
and get rid of these 16.+
version numbers.
static version numbers lead to rather reproducible results, compared to the +
notation. alike this one has to manually update these version numbers - but at least one knows which version number was updated and to which version number one has to to revert, in case of issues (it's worth the effort).
com.android.support:appcompat-v7:27.1.0
could also updated to 28.0.0
.
after that Android Studio should underline some dependencies in red - providing a clue which com.google.android.gms
and com.android.support
may need to be excluded - or added. eg. support-v4
is a common candidate for exclusion - but it has to be added at a matching version.
add a comment |
due to minSdkVersion 18
you have to add a dependency to com.android.support:multidex:1.0.3
for proper Dalvik
VM support.
the Manifest.xml
needs to have the Application
class referenced, too.
and to answer the actual question; first of all remove this one line:
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
then update buildToolsVersion
to 28.0.3
and get rid of these 16.+
version numbers.
static version numbers lead to rather reproducible results, compared to the +
notation. alike this one has to manually update these version numbers - but at least one knows which version number was updated and to which version number one has to to revert, in case of issues (it's worth the effort).
com.android.support:appcompat-v7:27.1.0
could also updated to 28.0.0
.
after that Android Studio should underline some dependencies in red - providing a clue which com.google.android.gms
and com.android.support
may need to be excluded - or added. eg. support-v4
is a common candidate for exclusion - but it has to be added at a matching version.
add a comment |
due to minSdkVersion 18
you have to add a dependency to com.android.support:multidex:1.0.3
for proper Dalvik
VM support.
the Manifest.xml
needs to have the Application
class referenced, too.
and to answer the actual question; first of all remove this one line:
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
then update buildToolsVersion
to 28.0.3
and get rid of these 16.+
version numbers.
static version numbers lead to rather reproducible results, compared to the +
notation. alike this one has to manually update these version numbers - but at least one knows which version number was updated and to which version number one has to to revert, in case of issues (it's worth the effort).
com.android.support:appcompat-v7:27.1.0
could also updated to 28.0.0
.
after that Android Studio should underline some dependencies in red - providing a clue which com.google.android.gms
and com.android.support
may need to be excluded - or added. eg. support-v4
is a common candidate for exclusion - but it has to be added at a matching version.
due to minSdkVersion 18
you have to add a dependency to com.android.support:multidex:1.0.3
for proper Dalvik
VM support.
the Manifest.xml
needs to have the Application
class referenced, too.
and to answer the actual question; first of all remove this one line:
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
then update buildToolsVersion
to 28.0.3
and get rid of these 16.+
version numbers.
static version numbers lead to rather reproducible results, compared to the +
notation. alike this one has to manually update these version numbers - but at least one knows which version number was updated and to which version number one has to to revert, in case of issues (it's worth the effort).
com.android.support:appcompat-v7:27.1.0
could also updated to 28.0.0
.
after that Android Studio should underline some dependencies in red - providing a clue which com.google.android.gms
and com.android.support
may need to be excluded - or added. eg. support-v4
is a common candidate for exclusion - but it has to be added at a matching version.
edited Dec 31 '18 at 17:31
answered Dec 31 '18 at 17:10
Martin ZeitlerMartin Zeitler
16.3k34167
16.3k34167
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53982361%2fandroid-error-dalvik-system-basedexclassloader-findclass%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
That's unlikely to be the cause of your problem. Please post the full stack trace (this is likely only half of it). But there's nothing here that even remotely looks like a library conflict problem.
– Gabe Sechan
Dec 31 '18 at 0:26
Even if not the cause of this, you should resolve the library conflicts. Usually, you would want to keep the later ones. Maybe also upgrade some libs that do not directly conflict (but cause conflicts by bringing in old dependencies.)
– Henry
Dec 31 '18 at 7:59
@GabeSechan I updated the stacktrace I found on the Google Play Console.
– Walter Monecke
Dec 31 '18 at 16:13
@Henry What if some libraries are not available in the later versions of some other libs? Do I downgrade everything to the most latest version that everything is compatible with?
– Walter Monecke
Dec 31 '18 at 16:16
What do you mean "not available in the later versions of some other libs"? They are no longer used?
– Henry
Dec 31 '18 at 16:19