Errors on importing MoPub SDK on Android in Eclipse - java

I'm facing a lot of errors while importing MoPub SDK to my workspace. It shows over 5000 errors.
Could you tell me what I'm doing wrong? I've tried to import as Java Project, then as Android Project. I have set it as library, and referencing to it as a library from my main project.
Any help will be appreciated.
Thank you,
Wojtek

I've figured it out. After importing the project Eclipse made Java Build Path -> Source:
mopub-sdk/gen
mobup-sdk/src
But it should be:
mopub-sdk/gen
mobup-sdk/src/main/java
Simple Remove and then Add Folder... solve the issues.

Related

How do I import a GitHub library into my android studio project?

I am trying to use this GitHub library: https://github.com/JonnyHaystack/build-prop-tools in my Android Studio Project, but can't quite figure out how to do so.
I've tried cloning the project, then importing it as a module, yet I am not sure what part of the cloned folder I am supposed to import.
After I import a new module, I know I will then be able to add it as a dependency, but I do not know how to get past this step. Any help is appreciated.
Click Github get from version control
Clone project

Deleted the .project file in the eclipse workspace

I had a problem with eclipse (mars) on my android project so I looked it up and found this question, I followed the first answer and they made me delete the .project file (which is located in workspace\.metadata\.plugins\org.eclipse.core.resources\.safetable) when I tried to paste it later it was gone. Now I'm getting a lot of errors in eclipse when I try to do stuff like run the project. Is there any way to recover it? Or is there a duplicate I can download from somewhere?
Any help would be appreciated.
Thanks,
If i were you i would upgrade to android studio.
You can try to import your broken project and maybe android studio will fix it for you. Since android studio works with Gradle builds it might fix just that.

Error Importing Android Library into project Eclipse

I am importing an Android Library into a new, fresh, blank Android Project in Eclipse.
When I select the library, everything is fine:
I right-click on the project again to check the library is still happily there...
But it isn't and now I'm very sad.
Has anyone seen this problem before? I've tried cleaning both projects, I've tried reopening Eclipse, I've tried restarting my computer, I've tried rebuilding the library project from scratch. It's really starting to confuse me.
Thanks
Solved.
Workspace, Installation and Libraries needed to all be located on the same physical drive. I guess this is a "feature" or nuance of Eclipse.
Thanks to AIL

How do I add this Change Log library to my current Android project in Eclipse?

Okay, so I'm having difficulties implementing this Change log library into my android app in eclipse: https://github.com/gabrielemariotti/changeloglib
I tried using the clone url and importing the library into eclipse and then going into the properties of my android project and adding it as a library but that didn't work. I do not have Maven installed nor do I know anything about it. Is there a way I can just get a jar of this library somewhere? Can someone please help me? Thank you!
Its most likely not setup as an Android Library project and that is why it can't be accessed that way.
You can create the jar yourself though by using: https://stackoverflow.com/a/11289115/1784299 eclipse itself or running the jar command in a terminal. (Eclipse might be a little more user friendly if you don't use the terminal.
I would however highly recommend learning how to incorporate Maven in your projects because it is a huge time saver. If you migrate to Android Studio then Maven will become your best friend.
I answer here to help other devs with the same issue.
The library is built with the Android Studio folder structure.
I highly recommend to use the gradle build system to work.
Hovewer, you can build it locally with Eclipse.
All required steps are described here:
https://github.com/gabrielemariotti/changeloglib/blob/master/doc/BUILD.md#reference-this-project-as-a-library-in-eclipse.
It can be valid for a lot of libraries.
Eclipse uses src and res as source folders. Android Studio instead uses src/main/java and src/main/res as source folders.
So you have to mark the java folder as source (right click on folder -> Build-Path -> use as source folder)

How can I run a Libgdx eclipse project in AIDE on Android?

I would like to run and compile my Libgdx game project in AIDE on Android, but I don't quite know how to do it. Should I edit .classpath file, move jars to different directory or maybe something else?
Thank you for your answer in advance.
If you have an Eclipse project you can just open the android project in AIDE and it will work.
Besides, the latest version of AIDE contains sample libgdx tutorials so you can also build from there or inspect those .classpath settings, good luck!
You have to install gradle from : http://download.springsource.com/milestone/TOOLS/gradle/
and try importing

Categories