gpt4 book ai didi

android - Gradle 错误 : Android Studio, ActionbarSherlock 和 SlidingMenu

转载 作者:太空宇宙 更新时间:2023-11-03 11:37:33 25 4
gpt4 key购买 nike

为了在 Android Studio 中正确设置库结构,我已经花了几天时间来解决这个问题。我会继续使用 Eclipse,但性能方面,最近对我来说真的很糟糕。拜托,任何指导将不胜感激,因为找到的所有解决方案都没有奏效,而且文档让我无处可去。

除主 TestProject 外,所有 list 都有一个空的应用程序标签。

编辑* 在包括 SlidingMenu 之前,我确实让 ActionBarSherlock 正常工作,没有问题和构建等。

错误

Gradle: Execution failed for task ':libraries:SlidingMenu:processReleaseManifest'.
> Manifest merging failed. See console for more info.

Build.Gradle(滑动菜单)

apply plugin: 'android-library'

buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}

dependencies {
compile 'com.android.support:support-v4:13.0.+'
compile project(':libraries:actionbarsherlock')
}

android {
compileSdkVersion 17
buildToolsVersion '17.0.0'


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

Build.Gradle (ActionBarSherlock)

apply plugin: 'android-library'

buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}

dependencies {
compile 'com.android.support:support-v4:13.0.+'
}

android {
compileSdkVersion 17
buildToolsVersion '17.0.0'

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

Build.Gradle(测试项目)

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

repositories {
mavenCentral()
}

dependencies {
compile 'com.android.support:support-v4:13.0.+'
compile project(':libraries:actionbarsherlock')
compile project(':libraries:SlidingMenu')
}

android {
compileSdkVersion 17
buildToolsVersion "17.0.0"

defaultConfig {
minSdkVersion 7
targetSdkVersion 16
}
}

settings.gradle(测试项目)

include ':TestProject',':libraries:actionbarsherlock',':libraries:SlidingMenu'

最佳答案

对我来说,问题在于“缺少 <application/>”滑动菜单库中的标签'。添加空后 <application/>显示错误的标签消失了。也许这会对某人有所帮助。

在这里查看线程:https://groups.google.com/forum/#!topic/adt-dev/PIah7eYXiNs

关于android - Gradle 错误 : Android Studio, ActionbarSherlock 和 SlidingMenu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17634534/

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