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 The Options Menu

Failing to import the project that i have downloaded from the teacher's notes

Hi,

I have downloaded the project but when i try to import it on my Android studio its saying "Error:Failed to find Build Tools revision 25.0.2 Install Build Tools 25.0.2 and sync project".

When i try to install, its saying Build tools cannot be found for download.

How can i get rid of this.

2 Answers

Javon Carson
Javon Carson
2,186 Points

I had an issue like this. I downloaded the project, unzipped it, imported to android studio, and got and error. The error was "Gradle sync failed: Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap.

I opened Gradle Scripts, gradle properties and changed the org gradle jvmargs to Xmx1024m (Matched what I had in other project that worked) it had 1563 in there and my laptop is old and slow and couldn't do that I guess lol. Hope this helps. Good luck.

Thanks a lot. Its works!