当我运行时cordova build android --buildConfig xxxx --release,我收到以下错误:
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
Run Code Online (Sandbox Code Playgroud)
奇怪的是我使用两台macOS机器进行编译,我只在其中一台机器上获得相同代码的错误.
这是./gradlew cdvPrintProps我在两台机器上的输出:
:cdvPrintProps
cdvCompileSdkVersion=26
cdvBuildToolsVersion=27.0.3
cdvVersionCode=null
cdvMinSdkVersion=21
cdvBuildMultipleApks=true
cdvReleaseSigningPropertiesFile=release-signing.properties
cdvDebugSigningPropertiesFile=null
cdvBuildArch=null
computedVersionCode=152045989
computedArmv7VersionCode=1520459892
computedX86VersionCode=1520459894
Run Code Online (Sandbox Code Playgroud)
以下是使用的插件列表:
$ cordova plugins list
cordova-custom-config 5.0.2 "cordova-custom-config"
cordova-fabric-plugin 1.1.10 "cordova-fabric-plugin"
cordova-open-native-settings 1.5.0 "Native settings"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-datepicker …Run Code Online (Sandbox Code Playgroud) 我正在学习如何通过测试应用程序使用Ionic,但我已经有两天这个问题了.我寻找可能的解决方案,但没有一个对我有用.
当我想在我的Android手机上测试我的应用程序时出现问题.使用此命令时ionic cordova run android,会给我以下错误
FAILURE:构建因异常而失败.
什么地方出了错:
任务'执行失败':CordovaLib:processDebugResources'.com.android.ide.common.process.ProcessException:无法执行aapt
[错误]运行cordova run android时出错(退出代码1).
我不确定是什么问题.我的应用程序非常简单,它基于Ionic的模板ionic start myApp tabs,我正在使用Ionic本机插件Geolocation.
我跑了ionic info然后回来了
cli packages:
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.4
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2
Run Code Online (Sandbox Code Playgroud)
我还检查了Cordova官方的Android开发文档,我的Java和Android路径也没问题.
另外随着ionic cordova requirements一切看起来是OK.
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-26,android-25,android-23
Gradle: installed C:\Program …Run Code Online (Sandbox Code Playgroud)