无法将mipmap/icon重命名为ic_launcher? [英] Unable to rename mipmap/icon to ic_launcher?

查看:87
本文介绍了无法将mipmap/icon重命名为ic_launcher?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在第2行的authenticator.xml中将@ mipmap/icon重命名为@ mipmap/ic_launcer时,构建我的应用程序时,任何程序都会变回来.

When i try to rename @mipmap/icon to @mipmap/ic_launcer in authenticator.xml on line 2. Any program changes back when i build my app.

    * What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  C:\ES.eWarrant\eWarrant\platforms\android\app\src\main\res\xml\authenticator.xml:2: AAPT: error: resource mipmap/icon (aka io.ionic.starter:mipmap/icon) not found.

这是我要构建离子应用程序时遇到的错误.

This is an error i've got when want to build ionic app.

离子信息:

Ionic:

   ionic (Ionic CLI)  : 4.12.0 (C:\Users\ES property\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.4
   @ionic/app-scripts : 3.2.3

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 8.0.0, browser 5.0.4, ios 5.0.0, windows 4.4.2
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 18 other plugins)

System:

   Android SDK Tools : 26.1.1 (C:\Users\ES-Property\AppData\Local\Android\sdk)
   NodeJS            : v8.12.0 (C:\Program Files\nodejs\node.exe)
   npm               : 3.10.10
   OS                : Windows 10

推荐答案

我所做的是在/platforms/android/app/app/app/src/main/res上复制mipmap-whathever文件夹之一,将名称更改为mipmapic_launcher.png改为icon.png

What I did was copy one of the folders mipmap-whathever on /platforms/android/app/app/src/main/res changin the name to mipmap an the ic_launcher.png to icon.png

这篇关于无法将mipmap/icon重命名为ic_launcher?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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