且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用build.gradle文件中的Eclipse项目到Android的工作室导入失败

更新时间:2022-02-28 21:49:37

我是一个机器人工作室的处女过,直到11分钟前。我遇到了同样的问题。如果签入的Andr​​oid Studio中的SDK管理器(或者Eclipse我相信)它会显示已安装的工具。我/失踪构建工具18.0.1过,并得到错误....但它是因为我还没有安装的话。

I was an Android Studio virgin too up until 10 minutes ago. I ran into the same problem. If you check your SDK Manager in Android Studio (or Eclipse I believe) it will show which tools you have installed. I am/was missing build tools 18.0.1 too and getting the error....but it was because I hadn't installed them.

因此,没有修改的摇篮构建文件,我能够安装使用SDK管理器的构建工具,并得到一切正常运行。

So without modifying the Gradle build files, I was able to install the build tools using the SDK Manager and get everything up and running.

请参阅本图片: 使用build.gradle文件中的Eclipse项目到Android的工作室导入失败

See this image:

顺便说一句,我也有更新的API版本,以及因为它选择的是未安装的API版本(我不明白,因为这是当我使用Eclipse编译)。

As an aside, I also had to update the API version as well because it selected an API version that wasn't installed (which I don't get because it was when I compiled with Eclipse).

希望这有助于。