내 응용 프로그램에 admob 광고를 통합하려고하는데이 오류가 발생합니다.com.google.ads.AdView : 다음 클래스를 찾을 수 없습니다.
은 "다음 클래스를 찾을 수 없습니다 : - com.google.ads.AdView"
홈페이지 XML 레이아웃 코드를 다음과 같이
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/background" >
<com.google.ads.AdView
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="My_Add_Id"
ads:loadAdOnCreate="true" />
Mainifest 파일은 다음과 같습니다
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.solutionproviders.bajiascooking"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-sdk android:targetSdkVersion="16"
android:minSdkVersion="9"/>
<application
android:allowBackup="true"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".Main"
android:label="@string/app_name" >
<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>
</manifest>
광고 추가를 위해 Google Play 서비스를 사용하고 있습니다.
나는 Stakeoverflow에 제공하는 모든 솔루션을 확인하고 있지만, 아무도 나를 위해 일하지
. 나에게 해결책을 제안 해주세요. 다른 정보도 제공되지만 문제에 대한 충분한 정보를 제공했다고 생각합니다.
프로젝트 –
내가 당신 playStoreLib에 몹에 귀하의 PLAYSTORE 해방 또는 추가 JAR 파일을 업데이트하세요 admob 클래스가 없습니다. Lib을 업데이트하거나 Google AdMob으로 이동하십시오. Admob.jar 프로젝트의 Lib 폴더에 –
을 추가하는 방법? 도와주세요, 제발. –