stripe/stripe-android

Importing "Existing Android Code into Workspace" causes an error

precipice opened this issue · 10 comments

Project doesn't import into current Android Developer Tools:

2013-10-16 at 11 54 am

(Note: I'm new to Android development and could entirely possibly be screwing this up somehow.)

OK, I get the same error when I try to Import is as existing Android code.

I can confirm this also, I have android-17 and import fails with the same message.

I'm also having the same issue.

VicV commented

I also got this. However, I continued the imports anyway and then right-clicked the project, and then clicked Android Tools > Fix Project Properties

Project works fine now.

Ah, so it appears to work if you use "Import Existing Projects into Workspace" as opposed to "Import Existing Android Code (weird):

screen shot 2014-03-25 at 8 55 45 pm

I'll look into why the "Android" import doesn't work, but for now, just use the first import. (Android development will still be enabled). Or use Android Studio — we have gradle files now!

VicV commented

Hmmm its interesting to me that the stripe 'library' has a res file. Importing as non-android makes sense given that this is an sdk, but generally speaking to have your project counted as an android 'library' you should not have a res folder.

I can look into it — @VicV, want to add an issue?

VicV commented

@phillco looking into all of it shortly, will do.

I've documented the above solution for eclipse in README.md 😄

Thanks, @stephen!