简体   繁体   English

即使添加android:debuggable =“ false”,Google Play上的上传失败

[英]Upload fails on google play even after adding android:debuggable=“false”

I am trying to upload my apk to the google store and it says You uploaded a debuggable APK. 我正在尝试将我的apk上传到Google商店,并显示您上传了可调试的APK。 For security reasons you need to disable debugging before it can be published in Google Play. 出于安全原因,您需要先禁用调试功能,然后才能将其发布到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. 我添加了android:debuggable =“ false”,并且在发布模式下使用唯一密钥对其进行了签名,但仍然出现错误。 I am building using xamarin 我正在使用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" />

The problem was that the androidmanifest.xml was showing some windows encoding instaed of and this was not throwing any error in xamarin. 问题是androidmanifest.xml显示了一些Windows编码,而这在xamarin中没有引发任何错误。 i changed it to utf-8 and it got uploaded 我将其更改为utf-8,并已上传

Xamarin Studio doesn't always update well changes in AndroidManifest. Xamarin Studio并不总是更新AndroidManifest中的改进。 I could solve the same issue by manually deleting the Droid/obj/Release/android folder in my project directory, then clean + build + package. 我可以通过手动删除项目目录中的Droid/obj/Release/android文件夹,然后清理+构建+包来解决同一问题。 The new package was accepted by Google Play. 新包装已被Google Play接受。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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