2013-11-01 26 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