Joseph hooper
Joseph hooper

Reputation: 1067

Loading Youtube sample project in Android Studio

I want to look at the sample project youtube provided here with it's API but Android Studio isn't loading properly. I think it's because it's designed for Eclipse. Can anybody guide me in what to do to get it to load?

Upvotes: 2

Views: 359

Answers (1)

bjiang
bjiang

Reputation: 6078

I tried and imported the sample successfully.

You can just:

  • Download the zip file and Unzip it.
  • Use Android Studio go to File --> New --> import project.
  • Select the YouTubeAndroidPlayerApi-1-3 --> sample folder.
  • If pop up any dialog just click yes and next.
  • The project will import, and go build.grade in Module:app and change compileSdkVersion and targetSdkVersion to 22(which is new)
  • Finally, put your APIKEY in DeveloperKey.java

Also I upload all code which you can refer here.

Upvotes: 1

Related Questions