Android gradle build failed with Nullpointer Exception

点点圈 提交于 2019-12-07 10:54:32

Following up from update 1 on original post,I downloaded "Android Support Repository and Google Repository" using below commands and now build is working fine.

/opt/android-sdk/tools/bin/sdkmanager --no_https --proxy=http --proxy_host=127.0.0.1 --proxy_port=3128 "extras;google;m2repository"

/opt/android-sdk/tools/bin/sdkmanager --no_https --proxy=http --proxy_host=127.0.0.1 --proxy_port=3128 "extras;android;m2repository"

Although this is good for timebeing, I will be interested to hear if someone can point out how can we set proxy, so that packages will automatically get downloaded during build.

Thanks,
Vishnu

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