简体   繁体   中英

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

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]

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. Android SDK

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM