gpt4 book ai didi

gradle - 类 : org. gradle.api 的 Actionbar Gradle 组。错误

转载 作者:行者123 更新时间:2023-12-04 16:20:19 27 4
gpt4 key购买 nike

好吧,我正在将 actionbar pull refresh library 实现到我的 demotool 项目中
我按照这个链接,最后我已经在终点线了
我的代码错误是
Gradle 'demotool' project refresh failed: No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
Implementing ActionBar-PulltoRefresh by Chris Banes, libary errors etc

但我收到了这个错误,我在谷歌上找不到,因为没有人有这个错误
我先给你我的项目结构

[演示工具]

|-> settings.gradle
包括 ':app',':actionbarsherlock',':pulltorefresh'
|

|-> build.gradle

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.8.+'
}
}

allprojects {
repositories {
mavenCentral()
}
}

|
|-> pulltorefresh
|-> build.gradle
apply plugin: 'android-library'

dependencies {
compile 'com.github.castorflex.smoothprogressbar:library:0.2.0'
}

android {
compileSdkVersion 14
buildToolsVersion "19.0.0"

defaultConfig {
// This should be 14, but is 7 because extra-abc/extra-abs depend on this library
minSdkVersion 14
targetSdkVersion 19
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}

apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

|
|-> actionbarsherlock
|-> build.gradle
应用插件:'android-library'
    dependencies {
compile files('actionbarsherlock/android-support-v4.jar')
compile ("com.actionbarsherlock:actionbarsherlock:[4.4,)@aar") {
// Need to specifically exclude this as it is specified in ActionBarSherlock pom
exclude group: 'com.google.android', module: 'support-v4'
}
}

android {
compileSdkVersion 14
buildToolsVersion "19.0.0"

defaultConfig {
minSdkVersion 14
targetSdkVersion 19
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}

apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

|-> 演示工具(应用程序)
|-> build.gradle
应用插件:'android'
    android {
compileSdkVersion 19
buildToolsVersion "19.0.0"

defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(":actionbarsherlock")
compile project(":pulltorefresh")
}

这是什么错误,为什么我会得到这个。
并告诉我这个结构是否可以?
是的,有时 我也收到默认配置错误
提前致谢

最佳答案

PullToRefresh/build.gradle适用于 gradle-mvn-push.gradle插件,但在您的项目中您不需要/不想要它。如果您注释掉该行:

apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

您的项目应该成功构建。

关于gradle - 类 : org. gradle.api 的 Actionbar Gradle 组。错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21950664/

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