Search code examples
javaandroideclipsemopub

Errors on importing MoPub SDK on Android in Eclipse


I'm facing a lot of errors while importing MoPub SDK to my workspace. It shows over 5000 errors.

MoPub SDK errors on import in Eclipse

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


Solution

  • 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

    Java Build Path - MoPub SDK source

    Simple Remove and then Add Folder... solve the issues.