码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-10-23 10:27:36      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:

.





一. 编译错误



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 : 

技术分享

-- 配置 资源路径 路径 : 

技术分享


.














.













.


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

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

标签:

原文地址:http://blog.csdn.net/shulianghan/article/details/49356649

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!