Balkrishna Rawool
Balkrishna Rawool

Reputation: 1863

Why can't I add mopub-android-sdk as library?

I want to use MoPub for putting ads in my Android app. I have downloaded the required resources and set-up a library project (mopub-android-sdk) in Eclipse. Now I want to add this project as a library to my Android app. But when I try to do that it gives this error:

this

Upvotes: 1

Views: 1816

Answers (2)

franklinho
franklinho

Reputation: 11

To get around this, don't set up the mopub-sdk as a library project.

You can simply import it as a standard project.

Go to File > Import >Existing Projects Into Workspace, find the right project and click finish.

Right click your actual project and then click Build Path. Go to Link Source and then select the location of the project you just imported.

That should resolve the issue for you without requiring you to build a JAR.

-Franklin

Upvotes: 0

Bryan
Bryan

Reputation: 46

Are the mopub-android-sdk files in the same parent folder as your project? This seems like the same problem addressed in this question/answer:

In eclipse, unable to reference an android library project in another android project

Place the referencing project in the same physical folder and see if the error persists.

Upvotes: 1

Related Questions