Appodeal. An error compile android

Appodeal. An error compile android
0.0 0

#1

I use Cocos Creator 1.6.1
After importing Appodeal I have an error compile android.

From log:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':cheetah_lib'.
> The SDK Build Tools revision (22.0.1) is too low for project ':cheetah_lib'. Minimum required is 25.0.0

#2
find /path/to/project/ -name cheetah-mobile

edit /path/to/cheetah-mobile/build.gradle

    buildToolsVersion "22.0.1"- > buildToolsVersion "25.0.0"

#3

So, I edited:
path: \build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\cheetah-mobile\build.gradle and \build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\libcocos2dx\libs\cheetah-mobile\build.gradle

After I got the same error for gps. I edited it too:
\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\gps\build.gradle

Now I have this error:

FAILURE: Build failed with an exception.

* What went wrong:

BUILD FAILED

Total time: 1 mins 58.331 secs
Execution failed for task ':zerosquares:lintVitalRelease'.
> Lint found fatal errors while assembling a release target.

To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}
...

If select Debug, then without the error.

And, what means select SDKBox:
sdkbox_check


#4

sorry, have no idea for this.


#5

Solved!

  1. path: \build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\cheetah-mobile\build.gradle and \build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\gps\build.gradle
    edit buildToolsVersion "22.0.1" -> buildToolsVersion "25.0.0"

  2. path: \build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build.gradle
    Add this inside the section android

lintOptions {
  checkReleaseBuilds false
}
  1. If you have an error missing activities: http://www.sdkbox.com/answers/question/appodeal-missing-activities-problem-on-android/

Notes:
Do not forget about res/sdkbox_config.json and app_key.
Disable any blockers ads.

Appodeal works!
Thanks.


#6

do you means this link ?

creator will show sdkbox-gui dialog to import sdk when it checked.
:wink:


#7

Yes.
Thanks.