.
一. 编译错误
1. "AndroidManifest.xml file not found" 错误
(1) 报错信息
报错信息 :
-- Message Make :
Information:Compilation completed with 1 error and 0 warnings in 2 sec Information:1 error Information:0 warnings Error:Android Source Generator: [MidiScope] AndroidManifest.xml file not found
-- Event Log :
上午8:41:38 Compilation completed with 1 error and 0 warnings in 2 sec
(2) 解决方案
解决方案 :
-- 选择 右键点击工程, 选择 Open Module Settings :
-- 配置 AndroidManifest 路径 :
2. "error: Error: No resource found that matches the given name (at ‘resource‘ with value" 错误
(1) 报错信息
报错信息 :
-- Message Make :
Information:Using javac 1.8.0_45 to compile java sources Information:Compilation completed with 5 errors and 0 warnings in 3 sec Information:5 errors Information:0 warnings /Users/hanshuliang/Downloads/MidiScope/Application/src/main/AndroidManifest.xml Error:(27, -1) Android Resource Packaging: [MidiScope] /Users/hanshuliang/Downloads/MidiScope/Application/src/main/AndroidManifest.xml:27: error: Error: No resource found that matches the given name (at ‘icon‘ with value ‘@mipmap/ic_launcher‘). Error:(27, -1) Android Resource Packaging: [MidiScope] /Users/hanshuliang/Downloads/MidiScope/Application/src/main/AndroidManifest.xml:27: error: Error: No resource found that matches the given name (at ‘label‘ with value ‘@string/app_name‘). Error:(27, -1) Android Resource Packaging: [MidiScope] /Users/hanshuliang/Downloads/MidiScope/Application/src/main/AndroidManifest.xml:27: error: Error: No resource found that matches the given name (at ‘theme‘ with value ‘@style/MidiScopeTheme‘). Error:(33, -1) Android Resource Packaging: [MidiScope] /Users/hanshuliang/Downloads/MidiScope/Application/src/main/AndroidManifest.xml:33: error: Error: No resource found that matches the given name (at ‘label‘ with value ‘@string/app_name‘). Error:(48, -1) Android Resource Packaging: [MidiScope] /Users/hanshuliang/Downloads/MidiScope/Application/src/main/AndroidManifest.xml:48: error: Error: No resource found that matches the given name (at ‘resource‘ with value ‘@xml/scope_device_info‘).
(2) 解决方案
解决方案 :
-- 选择 右键点击工程, 选择 Open Module Settings :
-- 配置 资源路径 路径 :
.
.
.
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2025-01-01 15:40:38