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
Timothy Boland
18,237 Pointsandroid.permission.USE_CREDENTIALS is not showing up as an option when adding the permissions suggested in the video.
Google Play Services -> Adding Play Services To Your App -> Adding the Code Library and Permissions
Has anyone else come across this problem while working on this video? Any suggestions? Im going to continue without adding this permission...maybe it is no longer required on the latest versions of google play services
1 Answer
Harry James
14,780 PointsHey Timothy!
It looks indeed like this has been silently deprecated in API 23 and doesn't come up as an option (You can however, still manually type it out and it will function - it just won't come up in Content Assist).
I've tried it out on my Lollipop device without the permission and everything works fine without it so it looks like it's not required.
If we take a look at the changelog for API 23, we can see USE_CREDENTIALS under the Removed Fields list.
Hope this explains everything but if you have any questions, give me a shout :)
Timothy Boland
18,237 PointsTimothy Boland
18,237 Pointswow...thanks harry....how did you find that changelog page....i searched and searched looking for an explanation for USE_CREDENTIALS...but all i could find was that it wasnt on the developer pages anymore...but what is the path to these changelogs for each API?
Harry James
14,780 PointsHarry James
14,780 PointsHey Timothy!
It's not very well documented this changelog page but you can find it with a Google search of
"Android API Changelogs". Note that you will need to change the API number in the URL to whichever API you want to know the differences for.After that, I used Ctrl+F to search for
USE_CREDENTIALS, leading me to the above page.The Android dev documentation will also search the changelog pages on the search bar at the top, however it may not be the first result.
Hope it helps and if you need anything else, let me know :)
Ni Yao
3,852 PointsNi Yao
3,852 PointsDefinitely helpful, thanks for this post. Saved me the hour I was about to spend searching haha.