升级的IntelliJ 10.5和Android构建失败没有指定Android SDK中IntelliJ、SDK、Android

2023-09-04 12:30:33 作者:少年、玩命卟玩心~

我刚刚更新了我的IntelliJ IDEA的安装在我的Mac 10.5。我有我的工作在10.0.3的Andr​​oid项目,一切是伟大的工作。现在,当我尝试建立的项目,我得到一个错误:

 信息:编制完成了1个错误和0警告
资料:1错误
信息:0警告
错误:Android SDK中没有为模块指定Project_Android
 

解决方案

这听起来像的IntelliJ不知道去哪里了Android SDK中。

下面是一个循序渐进的:

从现有项目,到文件 - >项目结构 点击模块从项目设置组条目(左侧) 点击Android的模块,为您的项目 单击新建它说:Android平台的 它指向Android SDK的位置,你必须在本地。 选择一个API版本。 单击应用

这应该是它。祝你好运!

图片添加

IntelliJ IDEA 新建安卓项目失败,网上的各种教程都不管用的看向这里

I just recently updated my IntelliJ Idea installation on my Mac to 10.5. I had an Android project that I was working on in 10.0.3 and everything was working great. Now when I try to build the project I am getting an Error:

Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Android SDK is not specified for module Project_Android

解决方案

It sounds like IntelliJ doesn't know where the Android SDK is.

Here is a step by step:

From your existing project, go to 'File' -> 'Project Structure' Click 'Modules' entry from the 'Project Settings' group (on the left side) Click 'Android' module for your project Click 'New' where it says 'Android Platform' Point it to the Android SDK location that you have locally. Select an API version. Click 'Apply'

That should be it. Good luck!

Image added