简体   繁体   English

导入最新的Volley Project时,Gradle构建错误

[英]Gradle build error when importing latest Volley Project

I am having error message... 我收到错误讯息...

Error:Cause: failed to find target with hash string 'android-22' in: /Users/Dominic/Library/Android/sdk

...when I update the gradle files to become dependent on Volley. ...当我更新gradle文件以依赖Volley时。 I downloaded SDK 22.0.1 and successfully imported Volley. 我下载了SDK 22.0.1,并成功导入了Volley。 I even verified the file path on both the gradle and the SDK manager were the same, and I opened my libraries folder and found in build-tools file 22.0.1. 我什至验证了gradle和SDK Manager上的文件路径是否相同,并且我打开了我的library文件夹,并在build-tools文件22.0.1中找到了该文件。

Can someone please help me figure out why SDK won't compile Volley because it can't find the build-tools version 22.0.1 even though it is right where it is supposed to be? 有人可以帮我弄清楚为什么SDK无法编译Volley的原因是,即使正确的位置,SDK也找不到构建工具版本22.0.1?

I am working on a Macintosh. 我正在使用Macintosh。

I solved the issue with gradle build. 我用gradle build解决了这个问题。 I had to download Android 5.1.1 API 22 for the gradle to build properly. 我必须下载Android 5.1.1 API 22,以使gradle能够正确构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM