Play提交设置Xamarin

Play提交设置Xamarin

本文介绍了如何为Google Play提交设置Xamarin.Android APK的包名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成我的应用程序,经过8个月的工作,我正在尝试提交给Google Play。

I have finished my app after 8 months work and I am attempting to submit to Google Play.

我正确地对齐APK并将APK上传到Google Play。然后,我收到以下消息:

I sign the and align the APK properly and upload the APK to Google Play. Then I get the following message:

以下是 AndroidManifest.xml file:

Here is the AndroidManifest.xml file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"     android:installLocation="auto" package="com.vrocket.launcher" android:versionName="1.30.637" android:versionCode="1">
    <uses-sdk android:targetSdkVersion="14" />
    <application android:hardwareAccelerated="true" android:label="launchpad">
        <provider android:name="com.vrocket.launcher.LocalFileContentProvider" android:authorities="com.vrocket.launcher" />
    </application>
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
</manifest>

据我所知,我在此指定的包名称符合Google Play提交的要求。自从我开始项目之后,我确实在Android.Manifest中更改了包名,但我认为这是非常正常的做法。

As far as I can tell, the package name I specify here meets the requirements for Google Play submission. I did change my package name in the Android.Manifest since I started the project but I figure this would be pretty normal practice.

有没有人有类似的问题提交Xamarin。 Android应用程序到Google Play?

Has anyone had similar issues submitting a Xamarin.Android app to Google Play?

编辑:

该APK正在使用旧包名称 VRocket.VRocket 进行编译。
我使用Android SDK中的 aapt 工具发现了这一点。
为什么不用 AndroidManifest.xml 中指定的包名称构建?

I have since figured out that the APK is being compiled with an old package name VRocket.VRocket.I found this out using the aapt tool in the Android SDK.Why is it not building with the package name specified in AndroidManifest.xml?

推荐答案

Visual Studio中的属性窗口(假设您在此编写)有几个可以更改的设置。这些在编译时会覆盖清单。也许这就是你流浪的名字来自哪里? Xamarin在你的代码中放置在类文件中的属性也是如此,Xamarin会在编译时重写所有的清单。如果您在解决方案选项卡中显示隐藏文件并转至
obj \ Release \ Android
,则此目录具有为您的应用程序生成的清单。也许它会暴露一些光。

The properties window in Visual Studio (assuming your writing in this) has a couple of settings you can change. These override the manifest when you compile. Perhaps this is where your stray name is coming in from? Same goes for the attributes you place in the class files in your code, Xamarin rewrites all of your manifest on compile. If you display hidden files in the solution tab and go to obj\Release\androidthis directory has the manifest that is generated for your app. Maybe it will shed some light.

这篇关于如何为Google Play提交设置Xamarin.Android APK的包名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 22:30