开发中遇到的Gradle,kotlin插件,AS无法更新或者网络超时问题

1.编译版本不一致

解决办法:

开发中遇到的Gradle,kotlin插件,AS无法更新或者网络超时问题_第1张图片

2.Kotlin version that is used for building with Gradle (1.1.51) differs from the one bundled into the IDE plugin (1.2.41) less...

kotlin 版本不一致但是sync 又 runtime out

解决方法:1.第一个是修改 kotlin_version版本为你本地有的版本

                  2.google()库访问不了,添加mvenCnetral()库

开发中遇到的Gradle,kotlin插件,AS无法更新或者网络超时问题_第2张图片

 3.android studio 更新不了

一方面是网络原因,另一个原因就是你的hosts修改过,导致update网络超时

解决办法:把你的hosts恢复为原来的,再重启as

下面附上windows hosts文件

开发中遇到的Gradle,kotlin插件,AS无法更新或者网络超时问题_第3张图片

 # copyright (c) 1993-1999 microsoft corp.
#
# this is a sample hosts file used by microsoft tcp/ip for windows.
# this file contains the mappings of ip addresses to host names. each
# entry should be kept on an individual line. the ip address should
# be placed in the first column followed by the corresponding host name.
# the ip address and the host name should be separated by at least one
# space.
#
# additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# for example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 localhost

 

你可能感兴趣的:(开发中遇到的Gradle,kotlin插件,AS无法更新或者网络超时问题)