Wednesday, 21 September 2016

How to use Gluon with recent Android SDK?

I'm trying to evaluate Gluon but I'm having trouble compiling the examples.



In the prerequisites it requires the Android SDK module 'Android Support Library' but this is not packaged with the Android SDK for Linux anymore. I've tried both the stand-alone SDK as well as Android Studio, but they behave exactly the same.



What I tried is specifying androidSdk = '/home/mark/Progs/android-sdk-linux' in build.gradle, which makes it successfully find the SDK.



The real problem is the following:




* What went wrong:
Failed to capture snapshot of input files for task 'mergeClassesIntoJar' during up-to-date check.
> java.io.FileNotFoundException: /home/mark/Progs/android-sdk-linux/extras/android/support/multidex/library/libs/android-support-multidex.jar (No such file or directory)


I've tried all the forum and StackOverflow posts I could find, and mostly they tell that I have to check 'Show Obsolete' in the SDK Manager to find 'Android Support Library', but it's just not there anymore.



Screenshot of the SDK Manager with 'Obsolete' checked







Also tried:




  • compile 'com.android.support:multidex:1.0.0' (and 1.0.1)

  • compile 'com.android.support:support-v4:21.0.2' (and 21.0.3)

  • compile "com.android.support:support-core-utils:25.1.0"
    (these just give more errors early on in the compile process)

  • Searching for '*multidex*.jar'; nothing found




Is Gluon just not compatible anymore with the Android SDK anno December 2016?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...