Stuck with Gradle Build Running

前端 未结 7 968
Happy的楠姐
Happy的楠姐 2020-12-01 02:31

While trying to build my Application on Android Studio 2.1 (On Ubuntu 16.04), it gets stuck on the below note:

Executing tasks: [:app:generateDebugSources,          


        
7条回答
  •  醉酒成梦
    2020-12-01 02:48

    You're probably behind the proxy, you might have recently changed your password or something has changed. Go to

    /home//.gradle/ (Linux)
    /Users//.gradle/ (Mac)
    C:\Users\\.gradle (Windows)
    

    in gradle.properties file, delete/ change proxy settings. They are different to your android studio proxy settings.

    Had the same issue, gradle used to take an hour to build. After I deleted proxy settings from gragle.properties file, it now takes couple seconds.

提交回复
热议问题