gpt4 book ai didi

android - 命令 “./gradlew build connectedCheck”以1退出

转载 作者:行者123 更新时间:2023-12-03 04:45:48 29 4
gpt4 key购买 nike

用过:github,gradle,travis CI来构建我的Android项目。
一些问题:
......
表明它不是内部类。
:processReleaseJavaRes截止日期
:validateMyConfigSigning
:package发布
:zipalign发布失败
失败:生成失败,发生异常。
* 什么地方出了错:
发现任务':zipalignRelease'的配置存在问题。

File '/usr/local/android-sdk/tools/zipalign' specified for property 'zipAlignExe' does not exist. * 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: 1 mins 26.33 secs The command "./gradlew build connectedCheck" exited with 1. Done. Your build exited with 1. ......



以下是我的:build.gradle文件:
请帮助我。谢谢

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
//乱码
tasks.withType(JavaCompile) { options.encoding = "UTF-8" }
}
apply plugin: 'android'

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
}

android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
//key
signingConfigs {
myConfig{
storeFile file("debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
buildTypes{
release {
signingConfig signingConfigs.myConfig
//代码混淆
//runProguard true
//proguardFile 'proguard.cfg'
}
}
//应用版本
defaultConfig {
versionCode 1
versionName "1.01"
minSdkVersion 11
targetSdkVersion 19
}
//文件
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}

androidTest.setRoot('tests')
androidTest {
java.srcDirs = ['tests/src']
res.srcDirs = ['tests/res']
assets.srcDirs = ['tests/assets']
resources.srcDirs = ['tests/src']
}
}

//for .so files
task nativeLibsToJar(type: Zip, description: 'create a jar archive of the native libs') {
destinationDir file("$buildDir/native-libs")
baseName 'native-libs'
extension 'jar'
from fileTree(dir: 'libs', include: '**/*.so')
into 'lib/'
}

tasks.withType(Compile) {
compileTask -> compileTask.dependsOn(nativeLibsToJar)
}
}

最佳答案

表明它不是内部类。
:processReleaseJavaRes截止日期
:validateMyConfigSigning
:package发布
:zipalign发布失败
失败:生成失败,发生异常。
* 什么地方出了错:
发现任务':zipalignRelease'的配置存在问题。

File '/usr/local/android-sdk/tools/zipalign' specified for property 'zipAlignExe' does not exist. * 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: 1 mins 26.33 secs The command "./gradlew build connectedCheck" exited with 1. Done. Your build exited with 1.

关于android - 命令 “./gradlew build connectedCheck”以1退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31259331/

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