2013-11-21 170 views
0

我试图添加一个权限,我读了我不得不添加,让程序保存到一个.txt文件到外部SD卡,并且清单给了我一个错误,我不是能够解决,它让我疯狂!请问我能得到一些帮助吗?谢谢SOS错误解析XML android

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.example.holamundo" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="18" /> 
<permission > </permission> 
<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <activity 
     android:name="com.example.holamundo.MainActivity" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name=".acercade" android:label="Acerca de..."></activity> 
    <activity android:name="Mesa1_1"></activity> //the error icon is showed on this line// 
</application> 

    </manifest> 

回答

0

的权限你要找的是WRITE_EXTERNAL_STORAGE

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.example.holamundo" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="18" /> 

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    ... 
+0

是的,但我需要解决,即时通讯在清单第一所遇到的问题,否则我的应用程序将无法运行!你看到什么了吗?我真的很感激它 – user3005375

+0

什么是错误? – znat