Difficulty compiling samples
As a bit of an Android n00b I've been having some problems compiling the samples which I have not much idea how to fix. I've followed the documentation step by step (I think).
First, gradle sync does not work, following the documentation for compiling the samples. It says to get the latest gradle version, which is 5.1.1 and does not have "leftShift" function for "<<" operator. It seems doLast {} is needed instead and I've had some success both with forcing gradle 4.10 and with modifying the gradle files to work with 5.1.1. So far so good ...
... except gradle sync never finished. It just spins doing nothing after a while. At this point Android Studio thinks there's a project and I can build it and it compiles code and stuff. However, there is no Configuration in the dropdown. It just says "Add Configuration". The docs expect there to be an Android configuration here but none appears. "Add Configuration" seems to be unhelpful too - there is no Module in the Module dropdown for Android App, and looking at some images online it seems Android Native App should be an option in Templates, but it does not appear. However, NDK is definitely ticked and installed, and the ANDROID_NDK_HOME points to the right place.
Does anyone have any clues where I'm going wrong here?
First, gradle sync does not work, following the documentation for compiling the samples. It says to get the latest gradle version, which is 5.1.1 and does not have "leftShift" function for "<<" operator. It seems doLast {} is needed instead and I've had some success both with forcing gradle 4.10 and with modifying the gradle files to work with 5.1.1. So far so good ...
... except gradle sync never finished. It just spins doing nothing after a while. At this point Android Studio thinks there's a project and I can build it and it compiles code and stuff. However, there is no Configuration in the dropdown. It just says "Add Configuration". The docs expect there to be an Android configuration here but none appears. "Add Configuration" seems to be unhelpful too - there is no Module in the Module dropdown for Android App, and looking at some images online it seems Android Native App should be an option in Templates, but it does not appear. However, NDK is definitely ticked and installed, and the ANDROID_NDK_HOME points to the right place.
Does anyone have any clues where I'm going wrong here?
