我試圖端口現有的C++應用程序中使用JNI到Android。然而,產生從AndroidManifest.xml中的build.xml文件,並試圖建立與它之後,我得到下面的(相關)輸出:錯誤與資源的build.xml未確認目錄/
[aapt] Generating resource IDs...
[aapt] invalid resource directory name: /{Project Directory}/res/audio
[aapt] invalid resource directory name: /{Project Directory}/res/img
BUILD FAILED
/{Android SDK Dir}/tools/ant/build.xml:560: The following error occurred while executing this line:
/{Android SDK Dir}/tools/ant/build.xml:589: null returned: 1
在已經被命名爲「資源」目錄這些都是現有目錄巧合,並不意味着對Java有語義含義。如果我從res /中刪除這些,那麼它的構建就很好。所以我的問題是 - 組織這個(或告訴螞蟻忽略無法識別的目錄)的最佳方式是什麼? Res已經是一個非常大的目錄結構,主要是.png .mp3和文本文件。