错误:Android Pre Dex:未指定Android SDK [英] Error:Android Pre Dex: Android SDK is not specified
问题描述
我从网站下载了 gdx-setup.jar
,我将其运行为:
I have downloaded gdx-setup.jar
from website and I run it as:
java -jar gdx-setup.jar
我选择了我想要的选项并为生成项目想法
(libgdx 1.6.2)。当我点击生成按钮时,该工具不会给我任何错误。
I select the options that I want and generate project for idea
(libgdx 1.6.2). When I click in generate button, the tool doesn't throw me any error.
当我运行 idea 14.1.3
我转到文件>打开...并选择生成的ipr文件。
When I run idea 14.1.3
I go to File > Open... and select the ipr file generated.
当我尝试运行桌面启动器时, idea
给我下一个错误:
When I try to run desktop launcher, idea
throw me the next error:
错误:Android Pre Dex:[android]未指定Android SDK
我尝试过使用不同的构建工具和android的API(当我从 gdx-按下生成按钮时,大多数都会向我发出警告setup.jar
)。我正在使用Build工具20.0.0和API 20,并且使用此配置 gdx-setup.jar
不会向我发出警告。
I have tried with different build tools and API of android (most of them throw me warnings when I pressed generate button from gdx-setup.jar
). I am using Build tools 20.0.0 and API 20 and with this configuration gdx-setup.jar
doesn't throw me warnings.
我检查一般项目的local.properties:
sdk.dir = / home / XXXX / Escritorio / android-sdk-linux-libgdx /
它是对的
我检查文件>项目结构...> SDK的> Android SDK它也是对的:
/ home / XXXX / Escritorio / android- sdk-linux-libgdx
I check local.properties of general project:
sdk.dir=/home/XXXX/Escritorio/android-sdk-linux-libgdx/
it is right
I check File > project structure... > SDK's > Android SDK and it is also right:
/home/XXXX/Escritorio/android-sdk-linux-libgdx
有什么建议吗?
谢谢。
推荐答案
进入项目结构,选择平台设置 - > SDKs(左侧面板),然后选择+添加您的Android SDK。然后在项目设置 - >模块中,选择android模块,并选择刚刚添加的android SDK。
Go in Project Structure, select Platform Settings -> SDKs (left panel) then add your Android SDK by selecting the +. Then in Project Settings -> Module , choose the android module, and choose the android SDK that you just added.
这篇关于错误:Android Pre Dex:未指定Android SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!