Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/220.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
即使添加了android:debuggable=";假;_Android_Xamarin_Xamarin.android_Android Manifest - Fatal编程技术网

即使添加了android:debuggable=";假;

即使添加了android:debuggable=";假;,android,xamarin,xamarin.android,android-manifest,Android,Xamarin,Xamarin.android,Android Manifest,我试图上传我的apk到谷歌商店,它说你上传了一个可调试的apk。出于安全原因,您需要先禁用调试,然后才能将其发布到Google Play中 我已经添加了android:debuggable=“false”,并且在发布模式下使用唯一密钥对其进行签名,但我仍然收到了错误。我正在使用xamarin进行构建 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mycompApp.MyAp

我试图上传我的apk到谷歌商店,它说你上传了一个可调试的apk。出于安全原因,您需要先禁用调试,然后才能将其发布到Google Play中

我已经添加了android:debuggable=“false”,并且在发布模式下使用唯一密钥对其进行签名,但我仍然收到了错误。我正在使用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,并上传了它

Xamarin Studio并不总是能很好地更新AndroidManifest中的更改。我可以通过手动删除我的项目目录中的
Droid/obj/Release/android
文件夹来解决同样的问题,然后执行clean+build+package。Google Play接受了新的包。

debuggable=false是默认值,因此您不需要自己包含它。可能是你的ant构建的某个动作重置了这个标志?我该如何检查?我正在使用xamarin创建构建。我指的是发布模式,创建building肯定是“building with xamarin”部分出了问题。有一些关于可调试性的文档,我遵循了其中定义的所有步骤,然后构建了它。事实上,我甚至尝试手动签名和上传,但我还是遇到了同样的问题