我最近更新了android studio,现在我在尝试使用离子cordova构建时出现此错误,我正在使用 gradle-4.4.1
任何人都可以帮助我。
离子信息:
cli包:(C:\ Users \ David \ AppData \ Roaming \ npm \ node_modules)
@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
全球套餐:
cordova (Cordova CLI) : 7.0.1
本地包裹:
@ionic/app-scripts : 3.0.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.7.1
系统:
Android SDK Tools : 26.1.1
Node : v6.10.3
npm : 5.5.1
OS : Windows 10
其他:
backend : legacy
[错误]运行cordova build android时出错(退出代码1):
(截断)... v7 / 27.0.2 / appcompat-v7-27.0.2.jar
file:/path/platforms/android/sdk-manager/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.jar
Required by:
project :
> Could not find com.android.support:support-v4:27.0.2.
Searched in the following locations:
file:/path/AndroidStudio/sdk/extras/android/m2repository/com/android/support/support-v4/27.0.2/support-v4-27.0.2.pom
file:/path/AndroidStudio/sdk/extras/android/m2repository/com/android/support/support-v4/27.0.2/support-v4-27.0.2.jar
file:/path/platforms/android/sdk-manager/com/android/support/support-v4/27.0.2/support-v4-27.0.2.jar
Required by:
project :
> Could not find com.android.support:support-annotations:27.0.2.
Searched in the following locations:
file:/path/AndroidStudio/sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.pom
file:/path/AndroidStudio/sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.jar
file:/path/platforms/android/sdk-manager/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.jar
Required by:
project : > com.facebook.android:facebook-android-sdk:4.30.0 >
com.facebook.android:facebook-core:4.30.0
> Could not find com.android.support:support-core-utils:27.0.2.
Searched in the following locations: