【Android应用开发】Android Studio 错误集锦 -- 将所有的 AS 错误集合到本文

.





一. 编译错误



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 : 

技术分享

-- 配置 资源路径 路径 : 

技术分享


.














.













.


版权声明:本文为博主原创文章,未经博主允许不得转载。

文章来自:http://blog.csdn.net/shulianghan/article/details/49356649
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3