Test drive on flutter: android.jar file not found

自古美人都是妖i 提交于 2021-01-27 19:59:06

问题


I'm just trying to run the first app and this is what happens:

FAILURE: Build failed with an exception.

  • What went wrong: A problem was found with the configuration of task ':app:processDebugResources'.

    File 'C:\Users\XXXX\Appdata\Local\Android\sdk\platforms\android-28\android.jar' specified for property 'androidJar' 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 15s Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

The file is on the android-29 folder! what should I do?


回答1:


Image Please update your android sdk.

You don't have install api 28. Please open your android sdk and install android sdk 28.



来源:https://stackoverflow.com/questions/59542137/test-drive-on-flutter-android-jar-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!