我從Android repository下載了一個應用程序(日曆)。Google的Android存儲庫代碼無法編譯
我試圖編譯它,但它給了我錯誤。
作爲一名開發人員,有關存儲庫的第一條規則我的教訓是這樣的:
提交您的代碼,如果它沒有錯誤編譯。
在編譯,我得到這些錯誤:
Error:(38, -1) android-apt-compiler: [Calendar] C:\Dev\Calendar\res\layout\location_dropdown_item.xml:38: error: Error: No resource found that matches the given name (at 'textColor' with value '@drawable/list_item_font_primary').
Error:(46, -1) android-apt-compiler: [Calendar] C:\Dev\Calendar\res\layout\location_dropdown_item.xml:46: error: Error: No resource found that matches the given name (at 'textColor' with value '@drawable/list_item_font_secondary').
Error:(44, -1) android-apt-compiler: [Calendar] C:\Dev\Calendar\res\layout\recurrencepicker.xml:44: error: Error: No resource found that matches the given name (at 'background' with value '@color/white').
真的,所提到的XML文件是從繪製包丟失。喲估計:這個提交檢查?
我應該用什麼來代替那些可繪製的?顏色黑色?或顏色紅?解決此問題的最佳方法是什麼?
如果Google不符合標準,誰會呢?
此困境可能是部分結帳的結果。當我通過本地svn服務器檢出我的項目時,我的本地庫始終缺失。 –
在網站上,它只顯示了這個Git鏈接,沒有提及其他的依賴:** git clone https://android.googlesource.com/platform/packages/apps/Calendar** – Nestor
你是否已經將整個源代碼樹構建爲記錄? –