How to resolve issue with my Gradle file in Android Studio?

人盡茶涼 提交于 2019-12-08 12:56:49

问题


After reinstalling my Android Studio I have big issues because all my projects have problem with Gradle file.

There are .jpeg-s attached Gradle File

Messages Gradle Sync

[Some conflicts in installation area][3]


回答1:


I would suggest fresh new install of everything and keep in mind where exactly will you install it (my suggestion would be to keep it simple like C:\Android\ for studio and C:\Android\SDK for SDK

Also you can click on Edit next to the SDK location and see what if your SDK report any issues or you can select another SDK location and update missing tools from there.

Or if you would like to tackle current issue on another way, use search and find SDK folder and move it your android folder (don't forget to avoid black space in file path), and again through SDK location don't forget to put new path to the Studio.

After you set up your environment ans run your build gradle again there shouldn't be any more issues like this, or at least when you install missing platforms and tools it will fix thing as it should.

Also have the same dependency version for libraries when you finish setting up environment.




回答2:


Finally done. I resolved uninstalling Android Studio. The real problem was SDK. When you uninstalling AS SDK is still on computer, and I deleted all these files from SDK folder. The best option if you install AS and SDK directly on C:. After that AS working without any problems. Thanks @Miroslav for all your help and patience.



来源:https://stackoverflow.com/questions/44261313/how-to-resolve-issue-with-my-gradle-file-in-android-studio

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