无法读取设置文件android / settings.gradle,因为它不存在

时间:2019-10-15 18:26:17

标签: cordova android-studio ionic-framework ionic3 android-sdk-2.3

我记得我将cordova更新为9,但仍在iOS中使用它,当我返回Android时,“运行”对我不起作用,我降级到cordova 8并删除平台并再次添加但我仍然收到此错误:

    > cordova run android
Android Studio project detected
ANDROID_HOME=/Users/Bruno/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home
studio

FAILURE: Build failed with an exception.

* What went wrong:
Could not read settings file '/Users/Bruno/Desktop/TMT/Final/mobile-patient-app-ionic-3/platforms/android/settings.gradle' as it does not exist.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
/usr/local/Cellar/gradle/5.6/bin/gradle: Command failed with exit code 1
[ERROR] An error occurred while running subprocess cordova.

        cordova run android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

离子信息

Ionic:

   ionic (Ionic CLI)  : 4.12.0
   Ionic Framework    : ionic-angular 3.9.8
   @ionic/app-scripts : 3.2.4

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4, ios 5.0.1
   Cordova Plugins       : no whitelisted plugins (8 plugins total)

System:

   Android SDK Tools : 26.1.1 (/Users/Bruno/Library/Android/sdk)
   ios-deploy        : 1.9.4
   ios-sim           : 8.0.2
   NodeJS            : v10.16.0 (/usr/local/bin/node)
   npm               : 6.11.2
   OS                : macOS
   Xcode             : Xcode 11.1 Build version 11A1027

0 个答案:

没有答案