Thanks yoojene, it worked form me!
Ah, finally (this must be the word most often used in this thread ) I got it running. Seems to have something to do with the android libs. In Android Studio I removed all API Levels but 26. Now it works like a charm
Thanks a lot, I just update my android version to 6.3.0 then error solved.
Thank you very much!
this was solved my problem, thx!
Hi im still having that problem.
i have the version of android 6.3.0 and still show me that error of
.../platforms/android/gradlew: Command failed with exit code 1 Error output:
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processArmv7DebugResources'.
> 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.
is there any solution?
Similar for me but instead I have android 6.4.0:
.../values.xml:270: error: resource android:attr/fontVariationSettings not found.
.../values.xml:270: error: resource android:attr/ttcIndex not found.
error: failed linking references.
* What went wrong:
Execution failed for task ':processDebugResources'.
> Failed to execute aapt
Running into this issue as well. Had no issues on 3/6/2018 now on 3/7/2018 getting this issue.
Steps taken to try to resolve the issue:
npm install
npm update
ionic cordova platform rm android
ionic cordova platform add android
ionic cordova resources android -f
Error when running ionic cordova build --release android
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
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: 9.717 secs
Error: /Users/user/Desktop/iOS/project/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.
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
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).
Ionic Info
cli packages: (/Users/user/Desktop/iOS/project/node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 1.3.12
Cordova Platforms : android 6.3.0 browser 5.0.3 ios 4.5.4
Ionic Framework : ionic-angular 3.5.0
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
Node : v7.7.1
npm : 4.6.1
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : /usr/local/Caskroom/android-sdk/3859397
Misc:
backend : pro
I think it’s caused by another problem or plugin or android sdk component. Because if you guys check, the error message is different from the first problem.
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
Hi, same issue since a few hours ago.
ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex
I have not update anything on my enviroment.
Try to remove platform and add it again but still not working
ionic info
cli packages: (C:\Users\Watgo01\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 6.5.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v6.10.1
npm : 3.10.10
OS : Windows 10
Environment Variables:
ANDROID_HOME : C:\Users\Watgo01\AppData\Local\Android\sdk
Misc:
backend : pro
.[quote=“cfowler2556, post:129, topic:109982, full:true”]
Running into this issue as well. Had no issues on 3/6/2018 now on 3/7/2018 getting this issue.
Steps taken to try to resolve the issue:
npm install
npm update
ionic cordova platform rm android
ionic cordova platform add android
ionic cordova resources android -f
Error when running ionic cordova build --release android
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
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: 9.717 secs
Error: /Users/user/Desktop/iOS/project/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.
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
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).
Ionic Info
cli packages: (/Users/user/Desktop/iOS/project/node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 1.3.12
Cordova Platforms : android 6.3.0 browser 5.0.3 ios 4.5.4
Ionic Framework : ionic-angular 3.5.0
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
Node : v7.7.1
npm : 4.6.1
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : /usr/local/Caskroom/android-sdk/3859397
Misc:
backend : pro
[/quote]
Same problem to day! please somebody help!
fix by Removing crosswalk plugin. now is working OK
not plugin installed.
these are the plugins in my application
cordova-plugin-app-update 1.5.2 "AppUpdate"
cordova-plugin-appversion 1.0.0 "App Version"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-email-composer 0.8.11 "EmailComposer"
cordova-plugin-file 5.0.0 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-filepath 1.0.2 "FilePath"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-keyboard 1.2.0 "Keyboard"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-storage 2.1.2 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboar
please somebody help!
Errors:
ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex
ionic info:
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : not installed
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.4.0 ios 4.5.4
Ionic Framework : ionic-angular 3.6.1
System:
Android SDK Tools : 26.1.1
Node : v6.11.0
npm : 5.6.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : C:\Users\dell1\AppData\Local\Android\Sdk
Misc:
backend : pro
Ok! Solving whit method JIgonzalez3
I got it working, my issue was in the cordova-plugin-file-opener2. Change ‘com.android.support:support-v4:+’ to ‘com.android.support:support-v4:23+’ in the plugin.xml for the cordova-plugin-file-opener2 in the plugins folder and the node_modules folder. Then do the same in the project.properties in platforms/android.
Looks like a new version of android-support-v4 with breaking changes was released, v28
, which cordova-android readily accepted. In order to prevent v28 from being used, I had to add this to our build.gradle
.
configurations.all {
resolutionStrategy.force 'com.android.support:support-v4:24.0.0'
}
this got me past the font error but now i’m getting
Execution failed for task ‘:transformClassesWithDexForDebug’.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
did you encounter this error after your add to the build.gradle?
It does not work, when reinstalling the missing plugins I failed. It has to do with what you mention. How do I do that part?
the plugin reinstall were:
cordova-plugin-file 5.0.0 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-filepath 1.0.2 “FilePath”
i modified jrivera-chefsteps solution to use v26 and this solved it for me
configurations.all {
resolutionStrategy.force ‘com.android.support:support-v4:26.0.0’
}
actually just figured it out. i didnt use that i followed MichaelSvray’s method. updated my background-geolocation plugin.xml to com.android.support:support-v4:23+
Definitely work, first test with Opener2 and then with Gradle.Build, test and it works.