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 trialClemens Kozmich
253 PointsWhat SDK Versions + Roboelectric version can I use to have a functioning gradle file?
I have issues with my app/build.gradle file as roboelectric version 3.1 and sdkVersion 23 are outdated and do not seem to work with latest Android Studio.
Can somebody add an update to show which versions should be used in 2019?
Thanks.
1 Answer
Lauren Moineau
9,483 PointsHi Clemens. Your compileSdkVersion
should be the newest stable version available, so 28 as of Feb 2019.
With Android Studio 3.3.1, you should have:
- Android Gradle plugin 3.3.1
- Gradle 4.10.1
(Android Studio should offer you to update it all once you modify your compileSdkVersion
)
As for Robolectrics, their setup guide tells us that the current version is 4.2.
Hope that helps :)
Clemens Kozmich
253 PointsThanks Lauren, I hope this info will be added to the course material so that everybody is already aware of this when doing this course ;-)
Lauren Moineau
9,483 PointsYou're welcome Clemens :)
rock mathew
101 Pointsrock mathew
101 Pointsi am facing same issues of gradle build