gpt4 book ai didi

java - android studio 错误 :Execution failed for task '*****_library:processReleaseManifest' . > 格式说明符 '20g'

转载 作者:行者123 更新时间:2023-11-29 20:10:07 25 4
gpt4 key购买 nike

几天以来我有一个错误:

Error:Execution failed for task   ':nameproject_library:processReleaseManifest'.

Format specifier '20g'

我有一个 projet 应用程序和一个库,我在 stackoverflow 和谷歌中搜索了很多,但所有解决方案都不适合我

build.gradle 库:

build.gradle 我的图书馆:

  apply plugin: 'com.android.library'
repositories {
mavenCentral()
jcenter()
maven { url 'http://xxxxxx:8081/nexus/content/groups/public/' }
//maven { url "http://repo1.maven.org/maven2" }

}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
}
apply plugin: 'android-apt'
def AAVersion = '3.1'
apt {
arguments {
androidManifestFile variant.outputs[0].processResources.manifestFile
}
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
compile 'com.google.code.gson:gson:2.3'
compile(
[group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '1.9.9'],
[group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.1.1'],
[group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.1.2']

)
compile 'org.codehaus.jackson:jackson-core-asl:1.1.0'
compile 'com.j256.ormlite:ormlite-core:4.48'
compile 'com.j256.ormlite:ormlite-android:4.48'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp:2.7.0'
compile 'org.springframework.android:spring-android-rest-
template:1.0.1.RELEASE'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.android.support:multidex:1.0.0'
compile('org.springframework.security:spring-security-
crypto:3.1.4.RELEASE') {
exclude group: 'org.springframework', module: 'spring-core'
}

//Dependency for Twitter
compile files('libs/signpost-commonshttp4-1.2.1.1.jar')
compile files('libs/signpost-core-1.2.1.1.jar')
compile files('libs/twitter4j-core-4.0.2.jar')
compile files('libs/twitter4j-media-support-3.0.3.jar')

//Dependency for Facebook
//compile 'com.facebook.android:facebook-android-sdk:4.3.0'

// Dependency for Google Sign-In
compile 'com.google.android.gms:play-services-auth:8.4.0'

// Dependency for Location
//compile 'com.google.android.gms:play-services-location:8.4.0'

}

//google plus
apply plugin: 'com.google.gms.google-services'

build.gradle 应用程序:

 apply plugin: 'com.android.application'
repositories {
mavenCentral()
jcenter()
maven { url 'http://********:8081/nexus/content/groups/public/' }
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
}
apply plugin: 'android-apt'
def AAVersion = '3.1'

apt {
arguments {
androidManifestFile variant.outputs[0].processResources.manifestFile
}
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "fr.assuristance.presentation"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}
dependencies {
compile project(':filassistance_library')
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"

}

我得到 --stacktrace

org.gradle.api.GradleException:无法确定任务“:app:mockableAndroidJar”的依赖关系。

任何帮助将不胜感激

最佳答案

我终于解决了这个问题

错误格式说明符'20g',来自项目路径,文件夹包含“%”

在那之后我仍然有一个错误:错误:任务'::processReleaseResources'的执行失败。 > 在索引 4

而且在 Android SDK 中,我注意到有一个坏掉的 sdk 工具(我怀疑在我更新 android studio 后它坏掉了),所以我只是删除它们,现在构建工作了

关于java - android studio 错误 :Execution failed for task '*****_library:processReleaseManifest' . > 格式说明符 '20g',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35127498/

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