问题
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