Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

performance - New android SDK 17 issue in my app?

Today i was update my android sdk to new android adk-17 . i am facing some problems in this, that is unable to show AddMob in my app, if i remove addmob in the code able to run the app without any errors otherwise not. what is the solution for this, is this bug in new sdk.

this is the Logcat information

Caused by: java.lang.ClassNotFoundException: com.google.ads.AdView in loader   
           dalvik.system.PathClassLoader[/data/app/com.veritra.iflipout-1.apk]
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Maybe the ADK update has messed-up with your project's build-path. Try removing the admob JAR and add it again to your libs folder, add it to your Build Path and do a Clean Project.

Anyway it's hard to help you without more details on the error you encounter.

EDIT following poster's comment about not having a libs folder:

You should try this:

  1. Remove all references to the AdMob JAR in your project -> your code should not build without error anymore
  2. Create à libs folder at the root of your project
  3. Copy the AdMob JAR into the libs folder
  4. Make sure this AdMob JAR is in your Build Path (this will allow your code to build wihtout error)
  5. (If still not running OK) Right click your project > Android Tools > Fix Project Properties

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...