参见英文答案 Running “cordova build android” – unable to find attribute android:fontVariationSettings and android:ttcIndex24个 运行命令“ionic cordova build android –stacktrace”时出现以下错误: :generateDebugRe
运行命令“ionic cordova build android –stacktrace”时出现以下错误:
:generateDebugResources :mergeDebugResources :processDebugManifest :processDebugResources ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings FAILED ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex I am using following tools on Window's: Editor : VScode Ionic: C:\Users\xyz>ionic -version 3.19.1 Npm as packagemanager
项目属性:
target=android-26 cordova.system.library.1=com.google.android.gms:play-services-analytics:+ cordova.system.library.2=com.facebook.android:facebook-android-sdk:4.+ cordova.gradle.include.1=cordova-plugin-appsflyer-sdk/customerapp-cordovaAF.gradle cordova.gradle.include.2=twitter-connect-plugin/customerapp-twitter.gradle cordova.system.library.3=com.android.support:support-v4:26.+ cordova.system.library.4=com.android.support:appcompat-v7:26.+ cordova.system.library.5=com.android.support:support-v4:24.1.1+ cordova.system.library.6=com.android.support:support-v4:+ android.library.reference.1=CordovaLib我不得不做以上两个答案的内容:
在platforms / android / phonegap-plugin-barcodescanner中:
搜索编译’com.android.support:support-v4:并替换为编译’com.android.support:support-v4:27′.
在平台/ android中:
搜索cordova.system.library.2 = com.android.support:support-v4:并替换cordova.system.library.2 = com.android.support:support-v4:27.1.0.
希望能帮助到你.