Android,添加了自适应图标,现在我在上传时收到架构错误

时间:2019-01-31 12:39:52

标签: android android-8.0-oreo

我在应用程序中添加了自适应图标,它的编译和构建都很好,但是当尝试上传到Play商店时,出现以下错误:

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 个答案:

答案 0 :(得分:0)

原来manifest文件有错误,我有:

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

我只是将其删除,而Play商店接受了该APK。