Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App Creating the Screen Layout Getting to Know Our Tools

I installed Android Studio got this message from Gradle Error:Can't load library: C:\Users\foo\.gradle

I installed Android Studio and got the above mentioned error On Stack Overflow they suggest removing the native folder from gradle path - what does this mean and how do I do this?

http://stackoverflow.com/questions/36797068/gradle-sync-failed-cant-load-library-windows-amd64-native-platform-dll

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

There is a "native" folder inside the ".gradle" folder that should be removed, i.e., C:\Users\foo.gradle\native

Start by opening the File Explorer. Because folders that start with a dot are usually hidden we'll need to alter the options to show them. Click on Options then Change folder and search options. Click the View tab at top and in the list click the radio button for "Show hidden files, folders, and drives". Click OK

Then on the left click Local Drive (C:) under This PC, then open Users, then your user, then the .gradle folder. Recycle Bin the native folder.