0

アプリにinner-activeを統合しようとしています..サンプルプロジェクトをダウンロードしましたが、xmlファイルでエラーが発生しました...

 Multiple annotations found at this line:
    - error: No resource identifier found for attribute 'adType' in package        'com.inneractive.api.ads.sample'
    - error: No resource identifier found for attribute 'refreshInterval' in package 
     'com.inneractive.api.ads.sample'
    - error: No resource identifier found for attribute 'keywords' in package 
     'com.inneractive.api.ads.sample'
    - error: No resource identifier found for attribute 'appID' in package         'com.inneractive.api.ads.sample'

XML

   <?xml version="1.0" encoding="utf-8"?>
  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">

    <com.inneractive.api.ads.InneractiveAd
        android:id="@+id/ad"
        xmlns:inneractive="http://schemas.android.com/apk/res/com.inneractive.api.ads.sample"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        inneractive:appID="Android_IA_Test"
        inneractive:adType="Banner"
        inneractive:keywords="android,test"
        inneractive:refreshInterval="120"
        android:layout_alignParentBottom="true"
    />

ところで、ネイティブ Android アプリのインナーアクティブを使用するのは正しい選択ですか? ティア

4

3 に答える 3

0

問題はラインによるものです

xmlns:inneractive="http://schemas.android.com/apk/res/com.inneractive.api"

として試すことができます

<?xml version="1.0" encoding="utf-8"?>
  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">

    <view class="com.inneractive.api.ads.InneractiveAd"
        android:id="@+id/ad"

        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        inneractive:appID="Android_IA_Test"
        inneractive:adType="Banner"
        inneractive:keywords="android,test"
        inneractive:refreshInterval="120"
        android:layout_alignParentBottom="true"
    />
    </RelativeLayout>
于 2012-06-12T07:44:05.557 に答える
0

私の名前は Nirit です。Inneractive のサポート マネージャーです。

サンプルアプリをコンパイルしようとしていますか? またはあなた自身のプロジェクト?

「xmlns:inneractive」をアプリケーション パッケージとして設定してください。さらに、attrs.xmlファイル (InneractiveAdSample\res\values\attrs.xml) をプロジェクトに追加する必要があることに注意してください。

ご質問やご意見がございましたら、ダッシュボードの「サポートへのお問い合わせ」リンクからお気軽にお問い合わせください。よろしく、ニリット。

于 2012-06-17T13:55:16.020 に答える
0

私は約 6 か月間 inneractive を使用しており、毎月かなりの量の収益 (毎月約 1500 ドル) を生み出すことができました。それはすべて、ダウンロード数とバナーの配置方法によって異なります。ユーザーにとって邪魔になりすぎないようにしますが、ユーザーが実際に表示してクリックできるようにします。

于 2012-06-20T13:44:45.390 に答える