即使在添加android:debuggable ="false"之后,Google Play上的上传失败 [英] Upload fails on google play even after adding android:debuggable="false"

查看:63
本文介绍了即使在添加android:debuggable ="false"之后,Google Play上的上传失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的apk上传到Google商店,并显示您上传了可调试的APK.出于安全原因,您需要先禁用调试功能,然后才能将其发布到Google Play中.

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.

我添加了android:debuggable ="false",并且在发布模式下使用唯一密钥对其进行签名,但仍然收到错误.我正在使用xamarin进行构建

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" />

推荐答案

问题是androidmanifest.xml显示了一些Windows编码,但并没有在xamarin中引发任何错误.我将其更改为utf-8并上传了

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

这篇关于即使在添加android:debuggable ="false"之后,Google Play上的上传失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆