在Harmony OS中禁止使用哪些Google服务(这是我在Android应用中使用过的列表.) [英] What google services are banned in Harmony OS (here is a list that I have used in my android app.)

查看:143
本文介绍了在Harmony OS中禁止使用哪些Google服务(这是我在Android应用中使用过的列表.)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在和声操作系统中上传我的android apk文件,并且由于该平台禁止了google服务,因此我必须使用其他平台.这是我使用过的google服务列表.请帮助我区分需要为 Harmony OS 进行重新编码的Google服务.

I need to upload my android apk file in harmony os and as google services are banned in this platform, I would have to use the alternative platform. Here is a list of google services that I have used. Please help me to distinguish what google services would I need to override and recode for Harmony OS.

com.google.android.material
com.google.firebase
com.google.android.gms:play-services-auth
com.google.android.gms:play-services-maps
com.google.android.gms:play-services-location
com.google.android.libraries.places
com.google.code.gson
com.google.protobuf.nano:protobuf-javanano

推荐答案

  1. 您的应用程序已集成GMS.由于新的华为手机被禁止使用GMS,因此您的应用程序(如果集成了GMS)将无法在新的华为手机上运行.如果您希望您的应用程序在这些手机上运行,​​请集成华为移动服务(HMS).

如果要在应用程序中使用地图服务,并且还希望应用程序在华为手机和Google Android手机上运行,​​则可以集成GMS Map Kit和HMS Map Kit.然后,您的应用将在华为手机上使用HMS Map Kit,而在Google Android手机上使用GMS Map Kit.

If you want to use the map service in your app, and also want your app to run on both Huawei phones and Google Android phones, you can integrate both GMS Map Kit and HMS Map Kit. Then your app will use HMS Map Kit on Huawei phones, while using GMS Map Kit on Google Android phones.

在您提供的列表中,您使用以下GMS服务:

In the list you provided, you use these GMS services:

com.google.firebase
com.google.android.gms:play-services-auth
com.google.android.gms:play-services-maps
com.google.android.gms:play-services-location
com.google.android.libraries.places

您可以参考以下华为移动服务:

帐户工具包网站工具包 AppGallery连接身份验证服务

  1. 您可以使用名为 HMS Core Toolkit 的IDE插件帮助您分析代码中使用GMS的位置.HMS Core Toolkit支持手动转换分析,旨在提高转换效率.它提供了两种转换策略:添加HMS API和添加到HMS API.您可以根据需要选择一个.

  • 选择 HMS >转换器>新转换,开始扫描,分析和转换.
    • Choose HMS > Convertor > New Conversion to start scanning, analysis, and conversion.
    • Convertor是支持Java和Kotlin项目的代码转换工具.该工具可以帮助您快速将用于调用第三方API的现有Android应用程序代码转换为与HMS Core集成的应用程序代码.

      The Convertor is a code conversion tool supporting Java and Kotlin projects. This tool can help you quickly convert the existing Android app code for calling third-party APIs into the app code integrated with the HMS Core.

      New Conversion可以使用To HMS API或Add HMS API转换策略将应用程序调用的GMS API自动转换为HMS API.

      New Conversion can automatically convert the GMS APIs called by apps into HMS APIs, using either the To HMS API or Add HMS API conversion policy.

      1. 通过 AppGallery Connect 上传您的应用.
      1. Upload your app through AppGallery Connect.

      • 如何在HUAWEI Developer上创建和发布您的应用?
        1. 注册并创建您的应用程序:注册并登录到您的HUAWEI Developer帐户,转到AppGallery Connect,创建一个新应用程序,然后上传APK.
        2. 设置基本信息:设置语言和基本应用信息,例如应用名称,简介,屏幕截图和应用类别.
        3. 设置发布信息:选择您的业务模式(免费或高级),发布国家和地区,以及指向隐私声明的链接.
        4. 提交发布:确认提供的所有信息正确无误,然后将您的应用提交审核.

        这篇关于在Harmony OS中禁止使用哪些Google服务(这是我在Android应用中使用过的列表.)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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