我正在尝试通过运行命令aapt
来测试功能。
./aapt package -f --no-crunch
-M /home/username/AndroidStudioProjects/ProjectName/androidTest/src/main/AndroidManifest.xml
-I /home/username/Android/Sdk/platforms/android-27/android.jar
-S /home/username/AndroidStudioProjects/ProjectName/androidTest/build/intermediates/res/merged/androidTest/debug/
但我收到了这个奇怪的错误信息。
invalid resource directory name: /home/username/AndroidStudioProjects/ProjectName/androidTest/build/intermediates/res/merged/androidTest/debug/ drawable-xhdpi-v4_abc_list_selector_disabled_holo_dark.9.png.flat
invalid resource directory name: /home/username/AndroidStudioProjects/ProjectName/androidTest/build/intermediates/res/merged/androidTest/debug/ drawable_abc_ic_go_search_api_material.xml.flat
invalid resource directory name: /home/username/AndroidStudioProjects/ProjectName/androidTest/build/intermediates/res/merged/androidTest/debug/ drawable-xxxhdpi-v4_abc_scrubber_control_to_pressed_mtrl_005.png.flat
invalid resource directory name: /home/username/AndroidStudioProjects/ProjectName/androidTest/build/intermediates/res/merged/androidTest/debug/ color_abc_primary_text_material_light.xml.flat
invalid resource directory name: /home/username/AndroidStudioProjects/ProjectName/androidTest/build/intermediates/res/merged/androidTest/debug/ drawable-mdpi-v4_abc_btn_check_to_on_mtrl_000.png.flat
ERROR: Invalid BCP 47 tag in directory name b+sr+latn_values
诸如此类。
我正在使用 Gradle 3.0.1 来构建项目。是什么导致了这个错误?