Cannot start application below candy.

I work with android studio. My application works fine on devices with lollipop, but when I run the application on the underlying devices with lollipop, it gives me the error message below. I also tried this answer

In case of a problem, repack it with jarjar to change the class packages Warning: The xpp3: xpp3: 1.1.4c dependency is ignored for release, as it may contradict the internal version provided by Android. In case of a problem, repack it with jarjar to change the class packages Warning: The xpp3: xpp3: 1.1.4c dependency is ignored for debugging, as this may contradict the internal version provided by Android.

My build.gradle:

apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.mypackagename" minSdkVersion 14 targetSdkVersion 22 versionCode 1 versionName "1.0" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.0.0' compile 'com.android.support:recyclerview-v7:21.0.+' compile project(':library') compile 'com.loopj.android:android-async-http:1.4.7' compile 'com.googlecode.libphonenumber:libphonenumber:7.0.5' compile 'com.afollestad:material-dialogs:0.7.4.2' //For XMPP compile 'org.igniterealtime.smack:smack-android:4.1.0' // Optional for XMPPTCPConnection compile 'org.igniterealtime.smack:smack-tcp:4.1.0' // Optional for XMPP-IM (RFC 6121) support (Roster, Threaded Chats, …) compile 'org.igniterealtime.smack:smack-im:4.1.0' // Optional for XMPP extensions support compile 'org.igniterealtime.smack:smack-extensions:4.1.0' compile 'com.android.support:multidex:1.0.1' /* compile "org.igniterealtime.smack:smack-android:4.1.0-rc1" // Optional for XMPPTCPConnection compile "org.igniterealtime.smack:smack-tcp:4.1.0-rc1" // Optional for XMPP-IM (RFC 6121) support (Roster, Threaded Chats, …) compile "org.igniterealtime.smack:smack-im:4.1.0-rc1" // Optional for XMPP extensions support compile "org.igniterealtime.smack:smack-extensions:4.1.0-rc1" compile "org.igniterealtime.smack:smack-tcp:4.1.0-alpha6"*/ } 
+6
source share
1 answer

you can add the code below to the build.gradle file. This works for me:

 configurations { all*.exclude group: 'xpp3', module: 'xpp3' } 
+17
source

Source: https://habr.com/ru/post/989743/


All Articles