I am using Eclipse ADT to sign my app for submission to the Play Store. I right click on the project and choose Android Tools -> Export Signed Application Package. However when I do this it removes permissions from the Manifest file that is required for the application to run. Below is my Manifest file.
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<uses-permission
android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.myou.MyApp"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
After exporting the uses-permission is removed:
<uses-permission android:name="android.permission.INTERNET" />
I have tried fixing the properties in the Android Tools before exporting, but it still removes the permission.
If anyone comes across this problem the simple answer is:
Do not attempt to edit AndroidManifest.xml
file found in the bin
directory. You need to change the file in the root of your project.