Android compile error

About Monkey 2 Forums Monkey 2 Programming Help Android compile error

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13052

    juliocmfj
    Participant

    I get the following error while compiling for the Android platform, using the most current version of Monkey2.

    Does anyone know how to solve it?

    #13057

    Mark Sibly
    Keymaster

    Have you updated your SDK tools etc?

    That gradle thing is a real pain – it’s a version control tool apparently, but it has serious version problems itself!

    #13058

    Mark Sibly
    Keymaster

    For the record, I’m currently using the following versions of everything and can build OK:

    android studio 3.0.1
    android sdk platform-tools 27.0.1
    android sdk tools 26.1.1
    NDK 16.1.4479499

    Make sure you have build tools 26.0.2 installed too. One of the build.gradle files (called ‘build.gradle (Module:app) in the android project) references ‘buildToolsVersion “26.0.2”‘ so you could also try editing this to any version you have installed.

    Finally, you might want to check you have all ‘SDK Update Sites’ enabled.

    #13105

    juliocmfj
    Participant

    I got lucky, Mark. I saved the files that are generated when I opened the project in Android Studio. Yesterday I did an update on it, so I was not compiling anymore, because I updated Gradle along with Android SDKs.

    I just copied the files I got from the Gradlew backup and compiled without major problems.

    Attached is the necessary files. Just copy it to the project folder and compile it. In my case: demo.products\Android\….

    #13109

    juliocmfj
    Participant

    Error sending the compressed file. Send the link to download.

    ps: To make it easier and not have to copy and paste these files in all projects, just copy to the folder: c:\monkey2-v1.1.09\products\android\monkey2game\ which, when generating the build for Android, automatically copied these files to the project folder.

    https://drive.google.com/open?id=1i7gLUzfiHFqbbEqkeuz_flmO2JU_glOF

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

You must be logged in to reply to this topic.