无法在棒棒糖下运行应用程序 [英] Can not run application below lollipop
问题描述
我正在使用 android studio.我的应用程序在棒棒糖设备中运行良好,但是当我在棒棒糖设备下方运行应用程序时,它给了我以下错误消息.我也尝试过 this 答案
I am working with android studio .My application working fine in lollipop devices but when i run application in below lollipop devices it gives me given below error message. I have also tried with this answer
如有问题,请用jarjar重新打包更改课程包警告:发布时忽略依赖项 xpp3:xpp3:1.1.4c,因为它可能与提供的内部版本冲突安卓.有问题请用jarjar重新打包更改类包警告:调试时忽略依赖 xpp3:xpp3:1.1.4c,因为它可能与 Android 提供的内部版本冲突.
In case of problem, please repackage it with jarjar to change the class packages Warning:Dependency xpp3:xpp3:1.1.4c is ignored for release as it may be conflicting with the internal version provided by Android. In case of problem, please repackage it with jarjar to change the class packages Warning:Dependency xpp3:xpp3:1.1.4c is ignored for debug as it may be conflicting with the internal version provided by Android.
我的 build.gradle 是:
My build.gradle is:
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"*/
}
推荐答案
您可以在 build.gradle 文件中添加以下代码.它对我有用:
you can add the code below in your build.gradle file. It work for me:
configurations {
all*.exclude group: 'xpp3', module: 'xpp3'
}
这篇关于无法在棒棒糖下运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!