android - 构建错误-Ionic Cordova 对 android 失败

标签 android cordova ionic3 cordova-plugins

<分区>

运行命令“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 中:

搜索 compile 'com.android.support:support-v4:+ 并替换为 compile '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.

希望对您有所帮助。

关于android - 构建错误-Ionic Cordova 对 android 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49163472/

相关文章:

javascript - Cordova Angularjs : How to get value return from CordovaSQLite

javascript - "showkeyboard"事件来自哪里?

angular - 有没有办法避免在 Ionic 3 中的列表更新后 View 闪烁?

javascript - Angular 自定义焦点指令不适用于 ion-item(但适用于 native &lt;input/>)

angular - Ionic3 Angular6 : Template parse errors the pipe 'translate' could not be found in pushed pages

java - 我的 AutoCompleteTextView 的 textColor 总是白色

android - 如果未登录 Google Play 帐户,为什么 MapView 会返回 null?

javascript - 在 Android 网络应用程序中查找 SD 卡的路径

android - 在房间数据库中调用 'insert' 未完成事务

Android::如何在 token 过期时自动重新验证用户(电子邮件+密码验证)