Solution to the problem that the startup of android studio flutter has been stuck at "Running gradle task 'assembledebug'"

Insert image description here
Solving problem:
1, Revision item middleandroid/build.gradleText item
Generalbuildscript.repositoriesDownside

//google()
//mavenCentral()
 
注释掉,改成
 
maven {
    
    
   allowInsecureProtocol = true
   url 'https://maven.aliyun.com/repository/google'
}
maven {
    
    
   allowInsecureProtocol = true
   url 'https://maven.aliyun.com/repository/jcenter'
}
maven {
    
    
   allowInsecureProtocol = true
   url 'http://maven.aliyun.com/nexus/content/groups/public'
}

allprojects.repositoriesSame as above modified

Only need to useAppproject projectbuild.gradle >Properties (allow to use "unsafe" warehouses and not report warning messages)allowInsecureProtocolgradle

allowInsecureProtocol = true

Guess you like

Origin blog.csdn.net/qq_35091074/article/details/134971804