New android SDK 17 issue in my app?

后端 未结 3 653
时光说笑
时光说笑 2020-12-22 03:56

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

相关标签:
3条回答
  • 2020-12-22 04:02

    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
    0 讨论(0)
  • 2020-12-22 04:14

    The 'problem' here is that the SDK is a lot more strict about the libraries. If you do not check the library as 'exported' in eclipse, it is not added to your APK, leading to this nasty class not found exception. You should mark your libraries as exported.

    Project Properties | Java Build Path | Order and Export 
    
    0 讨论(0)
  • 2020-12-22 04:19

    when I updated my SDK it was total mess. Well, the only I had to change was the PATH in Environment Variables.

    http://developer.android.com/sdk/installing.html :

    Adding both tools/ and platform-tools/ to your PATH lets you run command line tools without needing to supply the full path to the tool directories. Depending on your operating system, you can include these directories in your PATH in the following way: On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ and platform-tools/ directories to the path. On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ and platform-tools/ directories to it. If you don't see a line setting the path, you can add one: export PATH=${PATH}:/tools:/platform-tools On a Mac OS X, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you don't already have one.

    0 讨论(0)
提交回复
热议问题