我是新手,在运行第一个应用程序时遇到错误

时间:2019-11-28 21:39:37

标签: android-studio flutter dart android-emulator

完成错误:ProcessException:进程“ C:\ Users \ Saheed \ AndroidStudioProjects \ testin_app \ android \ gradlew.bat”异常退出:

Downloading https://services.gradle.org/distributions/gradle-4.10.2-all.zip


Exception in thread "main" java.net.UnknownHostException: services.gradle.org


at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)


at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)


at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)


at java.net.Socket.connect(Socket.java:589)


at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)


at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)


at sun.net.NetworkClient.doConnect(NetworkClient.java:180)`

1 个答案:

答案 0 :(得分:0)

您只需要在SDK部分中安装android 9和android 8。安装后,将重新启动IDE。

Image 点击此处查看图像指南