-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AAPT: error: resource mipmap/icon (aka io.ionic.starter:mipmap/icon) not found. #686
Comments
Execute these commands:
|
Hi! Thanks! Now the app "build" but launch a "defaultErrorLogger" , so the app is installed but is blank .And before install the plugin it was working. Am i doing something wrong? |
With this fix I was able to build, but... Is there any way to resolve this without digging in the platform-specific folders? Also, how is this specific to this plugin (if it now is)? If it is, could it be fixed once and for all by updating the plugin? Thanks in advance. |
I already posted the solution here
|
Just to complement the answer from @ZumelzuR : // package.json
{
"cordova": {
"plugins": {
"@mauron85/cordova-plugin-background-geolocation": {
"ICON": "@mipmap/ic_launcher", // <-- Change this to 'ic_launcher'
"SMALL_ICON": "@mipmap/ic_launcher", // <-- Change this to 'ic_launcher'
},
},
},
} |
After hours trying to solve this problem, my DEFINITIVE solution that worked fine (without touch the files inside platforms), was: 1º - run 2º - Added this line in my config.xml inside the tag 3º - Update the plugin settings inside config.xml
4º - Configure my package.json
5º - Last step run IONIC VERSION: 6.4.0 |
I am new to both Android and Cordova plugins, but I wanted to try it for a Quasar app. I am not sure if I am right, but my impression is that there is very little amount of serious Cordova plugin development anymore...? Seems like there is a lot of abandoned forks, that people have moved on except for a few "bumped version" pushes, and many plugins seem to be slowly dying... I wanted to give this plugin a try, but I ran into the same error as described here... I have tried all the described solutions, but I am still getting an error: "Source path does not exist: resources/android/icon/drawable-xxxhdpi-icon.png". But are these solutions just workarounds, and is this a real bug that should be solved in the plugin? (because from reading these comments I find it hard to tell where the real problem lies) |
Yeah, I know what you mean @w-a-b . I don't think it's a real bug, I think that many of us do not fully understand the structure of a Gradle project and its integration with Cordova, as well as how to successfully use the configuration options for the stack. It's been a couple of months since my last Cordova project so my memory is getting blurry and I don't have a concrete example to show or to give you a solution, but from what I get is that the path to the icon file will depend on the file structure that your Gradle project generates. I wouldn't be surprised if it changed from one framework to another or even from one version to another. If this fix works for Ionic I don't know whether it will work for Quasar. |
I agree with you @w-a-b . I'm not an expert with Android and Cordova. But maybe you can try again the solution and change the Source path "resources/android/icon/ICON_NAME". I don't know how Quasar works, but after the framework builds the app, probably it will generate some files to "resources/android/icon" there you need to find the file that is your icon and then, change the Source path for your correct file name. I think you @w-a-b are on the right way, just need to make a small change for this to work. |
@RaschidJFR , @Ircampos97, thank you guys, I appreciate it and will give it a try. Plan B is to buy a cordova-background-geolocation-lt license, even if it seems to be a bit overkill for my needs. |
@lrcampos97 's solution worked for me. |
Please update this as a fix, it is ridiculous that we cannot compile until manual fix this bug. |
Mi solución fue armar un Hook que copie uno de mis iconos en la carpeta pedida y con el nombre adecuado.
|
Add the following line to the android platform in config.xml: |
All I had to do to resolve this was add
|
Im using this plugin on my app, but when I use it on a page, all the times throws this error.
Your Environment
Cordova plugin list:```
Steps to Reproduce
1.sudo ionic cordova run android
2.
3.
4.
Context
I want to use background geolocation to follow my movements durin a period of time
Debug logs
The text was updated successfully, but these errors were encountered: