创建新应用(ionic start AppTest
)时,我尝试使用ionic cordova run android -lc
,我收到以下错误消息:
console.warn: Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
console.warn: Native: tried calling SplashScreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
我的环境是:
cli包:(C:\ Users \ marci \ AppData \ Roaming \ npm \ node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
全球套餐:
cordova (Cordova CLI) : 8.0.0
本地包裹:
@ionic/app-scripts : 3.1.6-201712271536
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
系统:
Android SDK Tools : 26.1.1
Node : v8.9.3
npm : 5.6.0
OS : Windows 10
环境变量:
ANDROID_HOME : d:\AndroidSdk
其他:
backend : pro
科尔多瓦要求:
android的要求检查结果:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-26,android-25,android-24,android-23,Google Inc.:Google APIs:23
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle
我已经尝试解决这个问题4天了