Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import into Android Studio #10

Open
rsacher opened this issue Aug 14, 2014 · 10 comments
Open

How to import into Android Studio #10

rsacher opened this issue Aug 14, 2014 · 10 comments

Comments

@rsacher
Copy link

rsacher commented Aug 14, 2014

I am new to Android Studio (AS) - so in AS I chose clone from Repository-> git, which downloaded the files.
Then it complaines about not beeing a Gradle-project - how can I convert this git to a gradle-project?
Otherwise, if I try to run I get an error:
org.junit not found

@ddewaele
Copy link
Owner

I'm not an Android Studio expert but I've created a new branch for the Android Studio migration in androidstudio_migration. Feel free to check that one out.

Should work out of the box.

Importing a complex Eclipse project into Android Studio and converting it to Gradle is not something that is currently supported in Android Studio I guess.

Had to tweak it a bit. Let me know if you got it up and running so I can close this and add this info to the documentation.

Sorry for the late response.

@rsacher
Copy link
Author

rsacher commented Aug 16, 2014

Hello - and thanks for your effort!
I could import the branch (through the ZIP - the "copy https"-link still had me download the master)

I can also run it in a Genymotion Samsung S4, but up to now the maps won`t show up.
Maybe I got the Api-key wrong.. I will try later..

Thanks,
Reinhard

@ddewaele
Copy link
Owner

Yeah. Make sure you got a good API key (follow the tutorial for that).
Otherwise feel free to send a stacktrace.

Also using Genymotion (image with Google APIs enabled) and is working fine.

@kelodrams
Copy link

Hi, you could help me with something? I'm trying to use your https://github.com/ddewaele/GoogleMapsV2WithActionBarSherlock project, but it throws some errors, the error is that I can not import "com.ecs.google.maps.v2.actionbarsherlock.R". It could help me? I leave my mail [email protected]
Sorry if this does not go here, but I wanted to communicate with you

@ddewaele
Copy link
Owner

ddewaele commented Sep 2, 2014

This is the pefect space for discussing htis.
Did you try to use the Android Studio specific branch here ?

  • The master branch is for Eclipse/ADT.
  • The androidstudio_migration is for Android Studio

@kelodrams
Copy link

I'm using eclipse and use code source from master branch. I imported google-play-services_libs and actionbarsherlock in the project, but can't import com.ecs.google.maps.v2.actionbarsherlock.R, nor is created R in "generate java files". I think there is an error, but not sure

@priscipuelles
Copy link

Hello, the same thing is happening to me, I imported the projects but i get error with de class R, I'm looking the class but is not there.

I'm using Eclipse.

@kelodrams
Copy link

I downloaded the code and I have also imported the github, but the class is not generated com.ecs.google.maps.v2.actionbarsherlock.R your project and help me to resolve any issues fairly. I hope you can help me

@michaeljulyus
Copy link

Hi, i have tried to import the androidstudio_migration project in Android Studio, but i had problems like the one in the picture. Can you help me to provide the solution? I hope you can help me, Thanks.
ss

@ddewaele
Copy link
Owner

Just pushed some code that make it run on my Android Studio 1.5.1.
Can you try now ? (still crashes on some occasions in the app... will see if I find the time to look into those).

Also think ActionBarSherlock is completely deprecated now, and you should switch to the compat library. Been a while since I've done any serious android dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants