0

I am trying to implement AdColony ads into a new app I'm writing. I have followed the SDK integration guide, but am getting cant resolve symbol issues.

Per the guide I have added the following to my manifest:

<activity android:name="com.jirbo.adcolony.AdColonyOverlay"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />

<activity android:name="com.jirbo.adcolony.AdColonyFullscreen"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />

<activity android:name="com.jirbo.adcolony.AdColonyBrowser"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />

In my manifest all 3 have the same issue, in the android:name= field,everything but com is red and hovering says "Cannot resolve symbol 'jirbo'", "Cannot resolve symbol 'adcolony'", "Cannot resolve symbol 'AdColonyOverlay'", etc etc.

Manifest Screenshot

I have added the SDK libs to my projects libs folder. I also have the issue in my activity.

import com.jirbo.adcolony.*;

In that, the jirbo gives the cannot resolve symbol issue. Import Screenshot

Dependencies in build.gradle: gradle

Per comment, added to gradle, tried with both direct copy/paste leaving as

compile name: 'fyber-mediation-adcolony-[version]' , ext: 'aar'

as well as

compile name: 'fyber-mediation-adcolony-2.2.2' , ext: 'aar'

neither works, throws the following error on sync: gradle error

4

2 に答える 2

0

私は同じ問題を抱えていました。「赤いジルボ」を無視して、デバイスでアプリを実行しました。正常に実行され、AdColony ログは次のように述べています。

I/AdColony: ==== Configuring AdColony 2.3.5 with app/zone ids: ====
I/AdColony: <app ID used in AdColony.configure()>
I/AdColony: <zone ID used in AdColony.configure()>

残念ながら、"jirbo" とクラス "AdColony" はまだ赤ですが、問題なく動作します。

編集: Android Studioで「プロジェクトをGradleファイルと同期」をクリックすると修正されました!(「AVD Manager」の左側のアイコン)

于 2016-04-23T08:50:52.510 に答える