androidandroid-studiogithubadsenseadsense-api

Import from github to android studio


Hey I am trying to build an android application regarding google adsense. I want to import the android sample. https://github.com/Ishaan-Kumar/googleads-adsense-examples

Since I am only interested in android I want to import only this. https://github.com/Ishaan-Kumar/googleads-adsense-examples/tree/master/android

I tried to import via VCS in android studio by url https://github.com/Ishaan-Kumar/googleads-adsense-examples.git

But it imported the whole project including all the platforms(PHP,dontnet,ruby). The thing is I want the android only plus the android files are not detected (I think there is not gradle file in here)

How do I overcome this problem?


Solution

  • Step 1: Download Zip. Don't Fork the project or use git command or VCS in android studio.

    Step 2: Open Android Studio->New Project->Open->Select android directory.

    Step 3: Android Studio tells you this is a eclipse project (Convert it to gradle blah blah). Hit Next. This is the time I came to know this is an eclipse project and why android studio is not detecting it.

    Step 4: Done.

    PS: Thanks to comments(Comment Author has deleted his comment).