问题
I am trying to upload my apk to the google store and it says You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play.
I have added android:debuggable="false" and i am signing it in release mode with a unique key still I am getting the error. I am building using xamarin
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mycompApp.MyApp" android:versionCode="1" android:versionName="1.0" android:installLocation="auto">
<application android:label="MyApp" android:icon="@drawable/Icon" android:hardwareAccelerated="true" android:debuggable="false">
<activity android:name=".MainActivity" android:label="MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"></activity>
<!-- Only C2DM servers can send messages for the app. If permission is not set - any other app can generate it -->
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="14" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_OWNER_DATA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
回答1:
The problem was that the androidmanifest.xml was showing some windows encoding instaed of and this was not throwing any error in xamarin. i changed it to utf-8 and it got uploaded
回答2:
Xamarin Studio doesn't always update well changes in AndroidManifest. I could solve the same issue by manually deleting the Droid/obj/Release/android
folder in my project directory, then clean + build + package. The new package was accepted by Google Play.
来源:https://stackoverflow.com/questions/20246848/upload-fails-on-google-play-even-after-adding-androiddebuggable-false