gpt4 book ai didi

java - 尝试构建项目时 android studio 出错

转载 作者:行者123 更新时间:2023-12-02 11:31:46 27 4
gpt4 key购买 nike

我正在尝试从 android studio 版本 3.0.1 构建一个 android 项目。当我尝试编译我的项目时,我陷入了这个错误

Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library [com.parse:parse-android:1.16.7] E:\codecanyon-19950163-whatsapp-status-downloader\WhatsDownloader\WI Video Downloader\app\build\intermediates\exploded-aar\com.parse\parse-android\1.16.7\AndroidManifest.xml Suggestion: use tools:overrideLibrary="com.parse" to force usage

请提出一个解决方案来解决此问题,但我无法解决此问题

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.kingdov.whatsapp_status_downloader"
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "KINGDOV"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}


dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
compile 'com.android.support:recyclerview-v7:23.2.1'
compile 'com.android.support:cardview-v7:23.2.1'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.mani:ThinDownloadManager:1.2.2'
compile 'net.rdrei.android.dirchooser:library:3.2@aar'

}

现在我从堆栈跟踪中得到这个

  • 异常(exception)情况是:

    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)

最佳答案

转到Gradle 脚本 > build.gradle(module: app)

搜索

defaultConfig {
...........
minSdkVersion 11 //change this to 14
..........
}

关于java - 尝试构建项目时 android studio 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49241350/

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