无法运行低于棒棒糖应用 [英] Can not run application below lollipop
问题描述
我与Android的工作室。我的应用程序中工作的棒棒糖设备精细的工作,但是当我在下面棒棒糖的设备上运行的应用程序它给了我下面的错误信息给出。我也有试过回答
在问题的情况下,请及时与jarjar重新包装改变
类包
警告:依赖XPP3:XPP3:1.1.4c被忽略释放,因为它可能与所提供的内部版本有冲突
Android系统。
在问题的情况下,请与jarjar重新包装更改类包
警告:依赖XPP3:XPP3:1.1.4c被忽略的调试,因为它可以使用Android提供的内部版本有冲突
块引用>我的build.gradle是:
应用插件:'com.android.application 安卓{
compileSdkVersion 22
buildToolsVersion22.0.1 defaultConfig {
的applicationIDcom.mypackagename
14的minSdkVersion
targetSdkVersion 22
版本code 1
的versionName1.0
multiDexEnabled真
}
buildTypes {
发布 {
minifyEnabled假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro
}
}
} 依赖{
编译文件树(导演:'库',包括:['的* .jar'])
编译com.android.support:appcompat-v7:22.0.0
编译com.android.support:recyclerview-v7:21.0.+
编制项目(':库) 编译com.loopj.android:android-async-http:1.4.7
编译com.google code.libphonenumber:libphonenumber:7.0.5
编译com.afollestad:材料对话框:0.7.4.2 //对于XMPP
编译org.igniterealtime.smack:咂嘴,安卓4.1.0
//以XMPPTCPConnection
编译org.igniterealtime.smack:咂嘴-TCP:4.1.0
//以XMPP-IM(RFC 6121)的支持(名册,螺纹聊天,...)
编译org.igniterealtime.smack:咂嘴-IM:4.1.0
//可选的XMPP扩展的支持
编译org.igniterealtime.smack:咂嘴的扩展:4.1.0 编译com.android.support:multidex:1.0.1 / *编译org.igniterealtime.smack:咂嘴,安卓4.1.0-RC1
//以XMPPTCPConnection
编译org.igniterealtime.smack:咂嘴-TCP:4.1.0-RC1
//以XMPP-IM(RFC 6121)的支持(名册,螺纹聊天,...)
编译org.igniterealtime.smack:咂嘴-IM:4.1.0-RC1
//可选的XMPP扩展的支持
编译org.igniterealtime.smack:咂嘴的扩展:4.1.0-RC1
编译org.igniterealtime.smack:咂嘴-TCP:4.1.0-alpha6* /}
解决方案你可以在你的build.gradle文件中添加下面的code。这为我工作:
配置{
所有* .exclude组:XPP3',模块:'XPP3
}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
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.
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"*/ }
解决方案you can add the code below in your build.gradle file. It work for me:
configurations { all*.exclude group: 'xpp3', module: 'xpp3' }
这篇关于无法运行低于棒棒糖应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!