Android Question High eCPM ad network Appodeal SDK for B4A errors

Discussion in 'Android Questions' started by cambopad, Jul 13, 2015.

  1. cambopad

    cambopad Active Member Licensed 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:


    Code:
    ** 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?
     
  2. susu

    susu Well-Known Member Licensed User

    Just my guess: You forgot to copy Appodeal SDK jar file to Additional Library?
     
    cambopad likes this.
  3. cambopad

    cambopad Active Member Licensed User

    I already copied Appodeal SDK jar and their xml file to Additional Lib folder! I don't really know what's wrong with it!
     
  4. susu

    susu Well-Known Member Licensed User

    Did you add permissions into AndroidManifest.xml ?
    Sorry, I'm using mobile so I can't test it. I will try it later.
     
    cambopad likes this.
  5. cambopad

    cambopad Active Member Licensed 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 :)
     
  6. susu

    susu Well-Known Member Licensed 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.
     
    cambopad likes this.
  7. cambopad

    cambopad Active Member Licensed User

    I tried to ask them for support but haven't been able to solve the problem yet! :(
     
  8. Diana_app

    Diana_app Member

    cambopad likes this.
  9. eSolution

    eSolution Member Licensed User

    It worked great for me, it installed easy and the sample app was enough.
     
    Last edited: Mar 11, 2016
  10. cambopad

    cambopad Active Member Licensed User

    Thanks you! I solved the issue already! The SDK now works great!
     
  11. eSolution

    eSolution Member Licensed User

    how are the earnings from this network from your experience? I want to publish my app and my only experience is with Admob... Should I stick with Admob only?
     
  12. LucaMs

    LucaMs Expert Licensed User

    No answers to the previous @eSolution's post?

    Is Appodeal a good choice?
     
Loading...