ionic打包apk報錯問題A problem occurred configuring root project 'android'.
阿新 • • 發佈:2019-01-28
今天打包ionic專案的時候報出了下面錯誤:
錯誤原因是sdk的包沒下載全,主要缺的是下面的幾個檔案,通過sdk manager下載;What went wrong: A problem occurred configuring root project 'android'. > Could not resolve all dependencies for configuration ':_debugCompile'. > Could not find any version that matches com.android.support:support-v4:24.1.1+. Searched in the following locations: https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml https://repo1.maven.org/maven2/com/android/support/support-v4/ Required by: :android:unspecified * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
下載完成之後,執行“ionic build android”命令