android studio 联机帮助,Android Studio停留在“Gradle:解析依赖关系’...

我不知道我在项目中改变了什么,但是在构建gradle脚本时它突然无法通过这一步.

使用’gradle assemble’构建它没有问题.

编辑:以前的卡点是解析依赖’detachedConfiguration1′. (在第一次失败的_debugCompile尝试之后,我回到了detachedConfiguration1).

我想这是太多的依赖项目?我所拥有的一些示例项目在Studio中导入得很好….

我重新安装了Android Studio并删除了所有设置和首选项.

每次开始这样做时我都要杀了它.

敲响任何铃声?

import com.android.build.gradle.AppPlugin

import com.android.build.gradle.LibraryPlugin

// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript {

repositories {

mavenCentral()

}

dependencies {

classpath 'com.android.tools.build:gradle:0.9.+'

}

apply plugin: 'android'

repositories {

maven { url 'http://ksoap2-android.googlecode.com/svn/m2-repo' }

mavenCentral()

}

dependencies {

compile 'com.google.code.ksoap2-android:ksoap2-android:2.5.2'

compile 'com.android.support:support-v4:18.0.+'

compile fileTree(dir: 'libs', include: '*.jar')

compile project(':lib-projects:StickyListHeaders')

compile project(':lib-projects:ActionBar-PullToRefresh')

compile project(':lib-projects:facebook')

compile project(':lib-projects:Mopub:mopub-sdk')

compile project(':lib-projects:NineOldAndroids')

compile project(':lib-projects:ActionBarSherlock:actionbarsherlock')

compile project(':lib-projects:ActionBarSherlock:actionbarsherlock-i18n')

compile project(':lib-projects:SmoothProgressBar')

compile project(':lib-projects:android-viewflow-master:viewflow')

}

android {

signingConfigs {

debug {

storeFile file('....')

}

}

compileSdkVersion 19

buildToolsVersion "19.0.3"

sourceSets {

main {

manifest.srcFile 'AndroidManifest.xml'

java.srcDirs = ['src']

resources.srcDirs = ['src']

aidl.srcDirs = ['src']

renderscript.srcDirs = ['src']

res.srcDirs = ['res']

assets.srcDirs = ['assets']

}

// Move the tests to tests/java, tests/res, etc...

//instrumentTest.setRoot('tests')

// Move the build types to build-types/

// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...

// This moves them out of them default location under src//... which would

// conflict with src/ being used by the main source set.

// Adding new build types or product flavors should be accompanied

// by a similar customization.

debug.setRoot('build-types/debug')

release.setRoot('build-types/release')

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值