gpt4 book ai didi

android - 在 Android Studio 上发布构建项目 - support-v4

转载 作者:行者123 更新时间:2023-12-03 06:15:45 25 4
gpt4 key购买 nike

我在我的 Android 工作室项目上运行和构建 apk 时遇到问题,我正在搜索和搜索,但找不到任何适合我的问题的解决方案。

Gradle 控制台堆栈跟踪:

trouble writing output: D:\android-sdk-windows\Shairlook-Def-git\app\build\intermediates\pre-dexed\debug\internal_impl-22.0.0-f0c61aa475a654ffa9a9c544ec7d938bf31cfae2.jar (El sistema no puede encontrar la ruta especificada)

FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
D:\android-sdk-windows\sdk\build-tools\21.1.2\dx.bat --dex --output D:\android-sdk-windows\Shairlook-Def-git\app\build\intermediates\pre-dexed\debug\internal_impl-22.0.0-f0c61aa475a654ffa9a9c544ec7d938bf31cfae2.jar D:\android-sdk-windows\Shairlook-Def-git\app\build\intermediates\exploded-aar\com.android.support\support-v4\22.0.0\libs\internal_impl-22.0.0.jar
Error Code:
3
Output:
El sistema no puede encontrar la ruta especificada.
El sistema no puede encontrar la ruta especificada.
El sistema no puede encontrar la ruta especificada.

trouble writing output: D:\android-sdk-windows\Shairlook-Def-git\app\build\intermediates\pre-dexed\debug\internal_impl-22.0.0-f0c61aa475a654ffa9a9c544ec7d938bf31cfae2.jar (El sistema no puede encontrar la ruta especificada)


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.202 secs

这是我的模块 build.gradle文件:
apply plugin: 'com.android.application'

repositories {
mavenCentral()
}

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.example.shairlook"
minSdkVersion 10
targetSdkVersion 21
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.etsy.android.grid:library:1.0.5'
compile 'eu.ocathain.com.sun.mail:javax.mail:1.5.2'
compile 'com.google.android.gms:play-services:7.0.0'
compile 'org.igniterealtime.smack:smack-android-extensions:4.1.0'
compile 'org.igniterealtime.smack:smack-tcp:4.1.0'
}

关于它可能是什么的任何想法?

我就是想不通,有大神能解释一下吗?

提前致谢!

最佳答案

好的

解决方案是在 build.gradle 上更新 gradle我的项目,而不是模块

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
}
}

allprojects {
repositories {
jcenter()
}
}

它被设置为 0.9.0以前,谢谢。

关于android - 在 Android Studio 上发布构建项目 - support-v4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30925166/

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