-1

Android studio is not showing Activity_main.xml. Compiling produces the following output:

Gradle project sync failed, Unknown host 'repo.maven.apache.org you may need to adjust the proxy settings in Gradle.

enter image description here

Christian Goetze
  • 2,254
  • 3
  • 34
  • 51
Evar
  • 1
  • Does this answer your question? [Error:Unknown host services.gradle.org. You may need to adjust the proxy settings in Gradle](https://stackoverflow.com/questions/33664820/errorunknown-host-services-gradle-org-you-may-need-to-adjust-the-proxy-setting) – Luis Cardoza Bird Dec 29 '21 at 15:02
  • Can you please share your build.gradle here – Sayooj Jan 03 '22 at 04:24
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jan 06 '22 at 21:48

1 Answers1

0
  1. Ensure you're connected to the internet
  2. Disable gradle offline mode
  3. Check your firewall and proxy settings
return 0
  • 132
  • 5