Autore Topic: Integrare Admob in app android - errore xml  (Letto 734 volte)

Offline nemina

  • Nuovo arrivato
  • *
  • Post: 23
    • Mostra profilo
  • Dispositivo Android:
    Galaxy SII
Integrare Admob in app android - errore xml
« il: 22 Gennaio 2012, 15:10:18 CET »
Ciao!
Sto seguento un tutorial  x inserire ad mob nella mia app andorid con eclipse...

ma non capisco come mai quando inserisco
nel file main.xml

--------------------------------------------------------------------------------

<LinearLayout
xmlns:android="http://schemas.android.com/ apk /res/android"
xmlns:myapp="http://schemas.android.com/ apk /res/admobsimo.packadsimo.infoadmobsimo"
androidrientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.admob.android.ads.AdView
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
myapp:backgroundColor="#000000"
myapprimaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC"
/>
</LinearLayout>

--------------------------------------------------------------------------------

mi da errore all’ altezza della linea <com.admob.android.ads.AdView

Multiple annotations found at this line:
- error: No resource identifier found for attribute
'secondaryTextColor' in package
'admobsimo.packadsimo.infoadmobsimo'
- error: No resource identifier found for attribute
'backgroundColor' in package 'admobsimo.packadsimo.infoadmobsimo'
- error: No resource identifier found for attribute
'primaryTextColor' in package 'admobsimo.packadsimo.infoadmobsimo'




--------------------------------------------------------------------------------

da errore anke in admobsimo.packadsimo.infoadmobsimo - AdmosimpleActivity.java in setContentView(R.layout.main); dice ke R cannot be resolved to a variable

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
il mio file AndroidManifest.xml è il seguente e non da errori:

--------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="admobsimo.packadsimo.infoadmobsimo"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />


<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar">
<activity android:name=".adMain"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.categoryk@. launcher " />
</intent-filter>
</activity>

<!-- The application's publisher ID assigned by AdMob -->
<meta-data android:value="mioid" android:name="ADMOB_PUBLISHER_ID" />
<!-- AdMobActivity definition -->
<activity android:name="com.admob.android.ads.AdMobActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:configChanges="orientation|keyboard|keyboa rdHidden" />
<!-- Track Market installs -->
<receiver android:name="com.admob.android.ads.analytics.Inst allReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER " />
</intent-filter>
</receiver>

</application>

<uses-permission android:name="android.permission.INTERNET" />

</manifest>

--------------------------------------------------------------------------------


spero possiate aiutarmi grazie mille ciao!