Android Compiling problem

About Monkey 2 Forums Monkey 2 Development Android Compiling problem

This topic contains 2 replies, has 2 voices, and was last updated by  Gwenel 1 year ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14230

    Gwenel
    Participant

    When I imported or loaded the Android project I got this error?
    “Minimum supported Gradle version is 4.1 Current version is 4.0”

    Everything is up to date in Android Studio? How do you compile for Android am I missing something?

    #14249

    Mark Sibly
    Keymaster

    I just did a quick test and could build promptinvasion and run it on an emulator OK.

    I updated android studio and all my sdk bits in the process to:

    Android Studio 3.1

    Android SDK Build-Tools 28-rc1 (actually have lots of these installed)

    Android SDK Tools 26.1.1

    NDK 16.1.4479499

    But in general, gradle *can* cause issues, usually just after upgrading android studio although this time it ‘just worked’ (for the first time ever I think). I usually end up fixing problems like this by just trying random things in android studio and googling. There do seem to be 2 ‘versions’ of gradle involved – gradle itself and a gradle wrapper for android studio – both of which seem to have their own version numbers so it gets hella confusing.

    Also, the emulators appear to be fairly broken with the latest update – I can run stuff on them but there is resizing/snapshot weirdness.

    #14257

    Gwenel
    Participant

    Okay It was missing the Android SDK Tools 26.1.1 it suddenly asked for it in the middle of things and now it works (the first time you compile something always gives two red errors about not being able to distribute it to the device but it always works the second time).

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.