gpt4 book ai didi

android - 运行项目时如何解决重复输入错误

转载 作者:搜寻专家 更新时间:2023-11-01 08:26:05 24 4
gpt4 key购买 nike

这是我的build.gradle

 apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"

useLibrary 'org.apache.http.legacy'

defaultConfig {
applicationId "com.example.demo"
minSdkVersion 16
targetSdkVersion 21
multiDexEnabled true
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
aaptOptions
{
cruncherEnabled = false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
repositories {
maven { url "https://jitpack.io" }
}
}

dependencies {
compile project(':draggerLibrary')
compile project(':staggeredGridViewmaster')



compile files('libs/httpclientandroidlib-1.2.1.jar')
compile files('libs/httpcore-4.4-beta1.jar')
compile files('libs/httpmime-4.3.jar')
compile project(':viewPagerLibrary')
compile project(path: ':ViewPagerLibrary')

compile 'com.android.support:multidex:1.0.1'
compile 'joda-time:joda-time:2.4'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.android.gms:play-services:11.0.2'

compile 'cn.pedant.sweetalert:library:1.3'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'com.google.guava:guava:20.0'
compile "com.daimajia.swipelayout:library:1.2.0@aar"
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
compile 'org.apache.commons:commons-collections4:4.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.volley:volley:1.0.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
}

Error:Execution failed for task ':DemoProject:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/provider/DocumentsContractApi19.class

最佳答案

配置您的build.gradle

使用

compileSdkVersion 25 
buildToolsVersion "25.0.2"

然后

compile 'com.google.android.gms:play-services:11.0.2' 
compile 'com.android.support:appcompat-v7:25.3.1'

对于您的 MAP 问题,请使用 getMapAsync()

 SupportMapFragment mapOBJ = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map));
mapOBJ.getMapAsync(this);

阅读 Replace getMap with getMapAsync

关于android - 运行项目时如何解决重复输入错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44947811/

24 4 0
文章推荐: android - 传感器 StepCounter 有时无法在三星设备上正常工作
文章推荐: c# - 在 Protobuf.NET 中序列化 List (其中对象支持原语)?