gpt4 book ai didi

android - 无法在 Lollipop 下运行应用程序

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:26:07 26 4
gpt4 key购买 nike

我正在使用 android studio。我的应用程序在 Lollipop 设备上运行良好,但是当我在下面的 Lollipop 设备上运行应用程序时,它会给我以下错误消息。我也试过 this回答

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 是:

    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 文件中添加以下代码。它对我有用:

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

关于android - 无法在 Lollipop 下运行应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31049735/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com