android - Error inflating class com.google.ads.AdView -


alright, i've been going through tutorial in admob, , after trying compile, first faced annoying run time error.
i've been trying past few hours fix , trying solutions, such putting jar file in libs folder , on.. keep getting error.
thankfull if problem , figure out doing wrong.

first, logcat: http://pastebin.com/4trh31xh

here's how looks:

enter image description here enter image description here

my manifest:

<?xml version="1.0" encoding="utf-8"?> 

<uses-sdk     android:minsdkversion="9"     android:targetsdkversion="18" />  <uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus" /> <uses-feature android:name="android.hardware.camera.flash" />  <uses-permission android:name="android.permission.flashlight" /> <uses-permission android:name="android.permission.camera" /> <uses-permission android:name="android.permission.get_tasks" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.access_network_state"/>  <application     android:name="org.holoeverywhere.app.application"     android:allowbackup="true"     android:hardwareaccelerated="true"     android:icon="@drawable/safecam_icon"     android:label="@string/app_name"     android:theme="@style/holo.theme.light.darkactionbar" >     <activity         android:name="com.inturnex.safecam.mainactivity"        android:configchanges="orientation|screensize|keyboardhidden"        android:screenorientation="portrait"         android:label="@string/app_name"         android:theme="@android:style/theme.notitlebar" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>        <activity android:name="com.google.ads.adactivity"           android:configchanges="keyboard|keyboardhidden|orientation|screenlayout|uimode|screensize|smallestscreensize"/> </application> 

my layout:

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:layout_width="match_parent" android:layout_height="match_parent" >  <progressbar     android:id="@+id/progressbar"     style="?android:attr/progressbarstylelarge"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_centerinparent="true" />  <listview     android:id="@android:id/list"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:layout_above="@+id/linearlayout1"     android:divider="@null"     android:dividerheight="0dp" />  <linearlayout     android:id="@+id/linearlayout1"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:layout_alignparentbottom="true"     android:orientation="vertical" >      <com.google.ads.adview         android:id="@+id/adview"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         ads:adsize="banner"         ads:adunitid="xxxx"         ads:loadadoncreate="true"/> </linearlayout> 

alright, finally, figured out problem is. had bit deeper in logcat.

i use holoeverywhere library, can see in end of logcat file, says:

caused by: java.lang.unsatisfiedlinkerror: holoeverywhere: preferenceframework not found

the solution: had import holoeverywhere addons preferences library project, , works charm.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -