Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
Observed package id 'build-tools;20.0.0' in inconsistent location 'e:\android\adt-bundle-windows-x86_64-20140702\sdk\build-tools\android-4.4W' (Expected 'e:\android\adt-bundle-windows-x86_64-20140702\sdk\build-tools\20.0.0')
Error:A problem occurred configuring project ':app'.
> Could not find support-v4.jar (com.android.support:support-v4:24.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/24.1.1/support-v4-24.1.1.jar
Information:BUILD FAILED
Information:Total time: 1.384 secs
Information:1 error
Information:0 warnings
Observed package id 'build-tools;20.0.0' in inconsistent location 'e:\android\adt-bundle-windows-x86_64-20140702\sdk\build-tools\android-4.4W' (Expected 'e:\android\adt-bundle-windows-x86_64-20140702\sdk\build-tools\20.0.0')
Error:A problem occurred configuring project ':app'.
> Could not find support-v4.jar (com.android.support:support-v4:24.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/24.1.1/support-v4-24.1.1.jar
Information:BUILD FAILED
Information:Total time: 1.384 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
对比了好的工程,发现gradle里面多了一项
compile 'com.android.support:support-v4:24.1.1'
果断删除
结果:o了!
特此纪念
本文记录了一个关于Gradle配置的问题及解决过程。错误出现在尝试构建Android应用时,具体表现为找不到支持库support-v4.jar,通过调整依赖配置最终解决了构建失败的问题。
2854

被折叠的 条评论
为什么被折叠?



