简体   繁体   中英

Why is uses-permission removed from manifest when exporting APK?

When signing the app, ready for uploading to the Play Store, the following permission is automatically removed from the AndroidManifest.xml file:

<uses-permission android:name="android.permission.INTERNET"></uses-permission>

Why does this happen?

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.

The android project that you are building in eclipse will show two Android Manifest files.

  1. A Manifest file In the bin folder
  2. The second manifest file is stored outside, usually found below the libs and res folder in the package manager directory.You will find it if you look for it carefully.

You need to edit the Manifest File mentioned in (2) to make permanent changes to the Manifest.

Changes made in the Manifest stored in the bin will be removed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM