Compiling Android Studio on Mac uses wrong SDK Version

Hey, I wanted to compile the project I’m working on fir Android Studio on OSX:

cocos compile -s ~/Desktop/... -p android --android-studio 

I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':libcocos2dx'.
> failed to find target with hash string 'android-22' in: /Users/.../Library/Android/sdk

I have version android-23 instead of android-22. I tried to change the version in proj.android-studio/app/build.gradle but it didn’t work. Where does the build script reads in the SDK version so that I can change it to the new one?

Thank you!

1 Like

Did you ever figure it out?