Problem: ionic Cordova build Android — debug
Add the following directory file’s mavencentral (), jcenter ()
platforms/android/build.gradle
platforms/android/app/build.gradle
platforms/android/CordovaLib/build.gradle
Change it to the following content, and then re execute ionic Cordova build Android — debug
maven {
url "https://maven.google.com"
}
jcenter {
url "http://jcenter.bintray.com/"
}
If it still fails, first upgrade and update according to the as prompt, and then re execute the above process
Similar Posts:
- Could not find com.android.tools.build:gradle:3.3.0.
- [Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- Solutions to the problem of Android studio pulling mpandroidchart always reporting gradle sync failed: could not download javassist.jar
- Ionic build android, Error: spawn EACCES [How to Solve]
- [Solved] Could not find method google() for arguments [] on repository container,rn react-native-camera …
- [Solved] Could not find com.android.tools.build:aapt2:3.2.1-4818971.
- Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap
- Build failed for Android studio new project
- AS Import Project Error: Plugin with id ‘com.android.application’ not found.
- [Solved] Could not find com.android.tools.build:gradle:3.0.1