代码之家  ›  专栏  ›  技术社区  ›  Oscar Franco

安卓,添加了自适应图标,现在上传时出现模式错误

  •  0
  • Oscar Franco  · 技术社区  · 7 年前

    我在我的应用程序中添加了自适应图标,它可以很好地编译和构建,但在尝试上载到播放商店时,出现以下错误:

    You uploaded an APK or Android App Bundle which specifies an actions schema document in its manifest, but the actions schema document was given at an invalid location: 'res/mipmap-anydpi-v26/ic_launcher.xml'. Actions schema documents must be located under res/xml and specified as a resource file beginning with @xml/.

    1 回复  |  直到 7 年前
        1
  •  0
  •   Nikunj    7 年前

    结果发现 manifest

    <meta-data
           android:name="com.google.android.actions"
           android:resource="@mipmap/ic_launcher"/>
    

    我刚把它取下来,游戏商店就接受了apk。

    推荐文章