After that, at the end the build fails with this message:
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[ERROR] An error occurred while running cordova run android (exit code 1).
I tried to find a solution but I didn’t find any post with this.
Any idea???
Same problem here, i lost my whole day with this, in fact i figured it out, but i have to upgrade to android-26, the problem of it is playstore rejects my update because my users can’t upgrade for my new version, how to solve this keeping android-25?
Same problem here. Do you know how to solve this issue ?
:processDebugResourcesERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* 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: 5.217 secs
We tried to update Cordova and change some dependencies but we still have the issue. Please HELP
UPDATE: I try to reinstall the platform but meet this error
UP-TO-DATE
:compileArmv7DebugSources
:transformClassesWithDexForArmv7Debug
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForArmv7Debug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lorg/apache/cordova/BuildHelper;
* 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: 55.158 secs
Error: /Users/nampdn/Projects/mdds/mdds.vgm.player/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForArmv7Debug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lorg/apache/cordova/BuildHelper;
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Yes, my situation is the same as from lalogrosz. Last night we were working as usual and there was no problems, until the last build when we saw that gradle did some updates… After that we could not build any more with the error cannot find android fonts. ( the same thing lalogrosz descirbed ). We did androdi platform remove and android platform add - without errors, but when we try to build again the same error came out.
I dont know how to get Android Version info. Please, can you help me telling me how to do it?
Can you create a new project with ionic start (use the blank template) and add the Android platform and try to build it?
If this doesn’t work:
Can you create a new Cordova project with cordova create, then add the Android platform with cordova platform add android and try to build with cordova build android --debug?
Post the output please.
(This is trying to check if Ionic is connected at all or if this is a Cordova issue)
Hi @Sujan12, with a newly created project.
I am able to add platform with no error, and very happy that it can build with and without plugin cordova-plugin-crosswalk-webview
P/s: I notice it uses cordova-android@6.3.0 instead of cordova-android@6.2.2
Well, I am a junior programmer and I am not sure if I can do the things you ask me. I will have to wait for senior programmer to try to do the things you described. Anyway, last night we try a lot of things, using options like --debug, etc… - and we also try to re-build another project that we already did in the past. But without success. The same error came up. So right now we cannot build any android project.