mauron85 / cordova-plugin-background-geolocation-example

51 stars 54 forks source link

AAPT: No ressource found that matches the given name #3

Closed oliviercherrier closed 7 years ago

oliviercherrier commented 7 years ago

When I execute cordova build android, I get the following error message:

:processDebugResourcesC:\cordova-plugin-background\platforms\android\res\xml\aut
henticator.xml:5:19-31: AAPT: No resource found that matches the given name (at
'icon' with value '@mipmap/icon').
     FAILED

C:\cordova-plugin-background\platforms\android\res\xml\authenticator.xml:6:24-36
: AAPT: No resource found that matches the given name (at 'smallIcon' with value
 '@mipmap/icon').

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
xecException: Process 'command 'C:\Users\olivier\AppData\Local\Android\sdk\buil
d-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED

Total time: 12.83 secs
Error: cmd: Command failed with exit code 1 Error output:
C:\cordova-plugin-background\platforms\android\res\xml\authenticator.xml:5:19-31
: AAPT: No resource found that matches the given name (at 'icon' with value '@mi
pmap/icon').

C:\cordova-plugin-background\platforms\android\res\xml\authenticator.xml:6:24-36
: AAPT: No resource found that matches the given name (at 'smallIcon' with value
 '@mipmap/icon').

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
xecException: Process 'command 'C:\Users\olivier\AppData\Local\Android\sdk\buil
d-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

Thank you for your help,

Olivier.

mauron85 commented 7 years ago

seems to be this issue https://github.com/mauron85/cordova-plugin-background-geolocation/issues/206 and https://github.com/mauron85/cordova-plugin-background-geolocation/issues/195

oliviercherrier commented 7 years ago

Thank you very much.

Add ./platforms/android/res/mipap/icon.png solve this problem.

venuhs4 commented 6 years ago

Thanks @oliviercherrier for the help, you saved me! One small correction in the path ./platforms/android/res/mippap/icon.png

oliviercherrier commented 6 years ago

You'r welcome @venuhs4 . Happy that m'y post helped you!

nagarajanrajagopal commented 6 years ago

THanks, it worked for me also!