Missing 'name' key attribute on element activity at AndroidMan
2017-05-15 18:29
316 查看
<uses-permission android:content="android.permission.CHANGE_WIFI_STATE" />
这是android studio的报的错。
提示RT信息。
找了半天,发现android:content 居然不是android:name。实在想不到什么时候被改动的。改回来就好了。
后来研究了下,发现是。当你作全局搜索“find usage”的时候,会搜索到*.xml的相关代码。替换的时候,会先提醒你,替换哪些文件。你须要替换真正须要要替换的字符串。
相关文章推荐
- Missing 'name' key attribute on element activity at AndroidMan
- No resource identifier found for attribute 'parentActivityName' in package 'android'
- AndroidManifest.xml:10: error: Error: No resource found that matches the given name (at 'icon' with
- 异常:Property 'name' not found on type java.lang.String,attribute items does not accept any
- Android studio b Error: No resource found that matches the given name (at 'src' with value '@dra...
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' charac
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- ERROR 1062 (23000) at line 26903: Duplicate entry 'onli????' for key 'xxxx_script_name'
- cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean
- java.sql.BatchUpdateException: Data truncation: Data too long for column 'site_name' at row 1
- Your content must have a ListView whose id attribute is 'android.R.id.list'
- Android: Project ... is missing required source folder: 'gen'
- [错误]android invalid command-line parameter: Files. Hint: use '@foo' to launch a virtual device name
- Android中 Your content must have a ListView whose id attribute is 'android.R.id.list'错误的解决办法
- SSH - Data truncation: Data too long for column 'name' at row 1
- MySQL插入中文时出现ERROR 1406 (22001): Data too long for column 'name' at row 1
- Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' 解决
- 53. A man can't spin and reel at the same time. 一心不能二用
- Android development - 'missing theme error' in eclipse ide for layout xml files