0

I am trying to import the MoPub sdk into eclipse, but I am getting following error:

[2012-06-28 13:43:46 - mopub-android-sdk] Unable to resolve target 'android-4'

Kindly help me to resolve the issue.

Bo.
  • 2,547
  • 3
  • 24
  • 36
John Watson
  • 869
  • 3
  • 16
  • 32

1 Answers1

2

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. Have you installed Android 1.6 platform on your sdk?

Community
  • 1
  • 1
K_Anas
  • 31,226
  • 9
  • 68
  • 81
  • I have android 2.2 and 2.3.3 installed but not 1.6, do I need to install 1.6 as well ? – John Watson Jun 28 '12 at 19:21
  • 1
    The `android-4` it's looking for is 1.6. I believe mopub uses that for its minimum api level. You don't have to target it for your app, but it needs to be there for the import to work. – Geobits Jun 29 '12 at 02:06