Android Question High eCPM ad network Appodeal SDK for B4A errors

cambopad

Active Member
Licensed User
Longtime User
Hi everyone!

I just discovered a good ad network which will automatically optimizes the eCPM among many different ad networks such as Admob, UnityAd, Chartboost,..etc for you so that you will get the highest revenue for your apps without wasting your app traffics. This network is Appodeal!

You don't need to waste time for creating accounts with admob,UnityAd, Chartboost, or other ad networks. All you need is ONE account with Appodeal!

This is their homepage: http://www.appodeal.com/
Their B4A wrapper: http://www.appodeal.com/sdk

They actually have B4A wrapper, yet I cannot get it working with B4A app at all. After integrating their SDK, my app always crashed and get the following error message:


B4X:
** Activity (main) Create, isFirst = true **


java.lang.VerifyError: com/appodeal/ads/banner/a


    at com.appodeal.ads.c$1.<init>(Unknown Source)
    at com.appodeal.ads.c.<clinit>(Unknown Source)
    at com.appodeal.ads.Appodeal.initialize(Unknown Source)
    at com.appodeal.ads.Appodeal.initialize(Unknown Source)
    at com.appodeal.basic4android.AppodealB4A.initialize(AppodealB4A.java:37)
    at b4a.example.main._activity_create(main.java:322)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:525)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
    at b4a.example.main.afterFirstLayout(main.java:100)
    at b4a.example.main.access$100(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:78)
    at android.os.Handler.handleCallback(Handler.java:800)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:194)
    at android.app.ActivityThread.main(ActivityThread.java:5468)
    at java.lang.reflect.Method.invokeNative(Native Method)


    at java.lang.reflect.Method.invoke(Method.java:525)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:936)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)
    at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: An error occured while executing doInBackground()
    at android.os.AsyncTask$3.done(AsyncTask.java:299)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
    at java.util.concurrent.FutureTask.run(FutureTask.java:239)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
    at java.lang.Thread.run(Thread.java:838)
Caused by: java.lang.NoClassDefFoundError: com/appodeal/ads/c
    at com.appodeal.ads.o$b.a(Unknown Source)
    at com.appodeal.ads.o$b.doInBackground(Unknown Source)
    at android.os.AsyncTask$2.call(AsyncTask.java:287)
    at java.util.concurrent.FutureTask.run(FutureTask.java:234)
    ... 3 more

Note: I tested on both real device and emulator!
Can anyone help me what are the real causes of this problem?
 

susu

Well-Known Member
Licensed User
Longtime User
Just my guess: You forgot to copy Appodeal SDK jar file to Additional Library?
 
Upvote 0

cambopad

Active Member
Licensed User
Longtime User
Just my guess: You forgot to copy Appodeal SDK jar file to Additional Library?
I already copied Appodeal SDK jar and their xml file to Additional Lib folder! I don't really know what's wrong with it!
 
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
Did you add permissions into AndroidManifest.xml ?
Sorry, I'm using mobile so I can't test it. I will try it later.
 
Upvote 0

cambopad

Active Member
Licensed User
Longtime User
Hi @susu, I added all neccessary permissions already! I followed all the instructions on their website, yet no luck at all!
Please let me know if you can get it working
 
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
Honestly, I tried to make sample app with their SDK but I can't compile because error in Manifest file. I think you should ask Appodeal for support. Sorry, I can't help you.
 
Upvote 0

cambopad

Active Member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…