2013-11-01 29 views
0

我刚刚在IntelliJ中的项目中创建了一个新模块。现在我想在我的移动设备上部署/启动应用程序。在4.0上构建Android模块

构建后,我得到的错误是下面的一个

Android Dex: [Android] the "--core-library" option to suppress this error message. 
Android Dex: [Android] If you go ahead and use "--core-library" but are in fact 
Android Dex: [Android] building an application, then be forewarned that your application 
Android Dex: [Android] will still fail to build or run, at some point. Please be 
Android Dex: [Android] prepared for angry customers who find, for example, that your 

Image

+0

你有这些声明的任何类在其中一个“标准”软件包中? (java。*,android。*) –

回答

0

我在开源游戏我学一次看到这个。您直接链接您正在构建的平台的android.jar(以便能够在核心项目中使用Android代码,作为该游戏的制作者)。

这是一个非常糟糕的设计选择,这会导致疼痛和痛苦:p如果你想使用Android的特定代码,给检查这个维基条目:Interfacing with Platform Specific code