2012-02-11 135 views
1

我是Android開發人員的初學者(也是在Java中)。 我想編譯使用GreenDroid的Financisto開源項目。 我已經設法編譯GreenDroid本身,但沒有編譯Financisto。 當我嘗試 「編譯」 Financisto資源這樣的:如何在其他項目中包含Android主題

aapt.exe package -m -J f:\fin\src -M f:\fin\AndroidManifest.xml -A assets 
     -S f:\fin\res -I c:\android-sdk\platforms\adroid-8\android.jar 

但AAPT拋出了一個錯誤:

No resource found that matches the given name (at 'theme' with value 
'@style/Theme.GreenDroid'). 

據我所知是因爲AndroidManifest包含

<manifest ...> 
    <aplication android:theme="@style/Theme.GreenDroid" ... 

主題。 GreenDroid在GreenDroid/res/values/gd_themes.xml中定義了 我試過谷歌它,但沒有設法找到答案:我該如何讓這個樣式從Financisto可見的GreenDroid的e?

看起來Financisto的作者使用IntilliJ & Mac,但我想從控制檯& Win7編譯它,所以要求作者瞭解如何編譯它而不是一個選項。

回答

0

您需要包含GreenDroid項目作爲您現有項目的參考。

在Eclipse中,右鍵單擊您的項目,然後單擊Properties> Java Build Path,然後將GreenDroid添加到Project選項卡。

祝你好運

+0

「但我想從控制檯和Win7編譯它」 – yetanothercoder 2012-02-16 03:54:26

相關問題