I have downloaded the Osmdroid project from Github, from here https://github.com/osmdroid/osmdroid
When I open the osmdroid-master directory in Android Studio it attempts to sync but fails with the following error: Gradle Project sync failed.
Cause: startup failed:
script 'https://raw.githubusercontent.com/gradle-fury/gradle-fury/v1.1.4/gradle/maven-support.gradle': 1453: unable to resolve class org.gradle.api.internal.ClosureBackedAction
@ line 1453, column 13.
new org.gradle.api.internal.ClosureBackedAction({
^
1 error
In idea.log there is:
2020-01-31 14:10:04,272 [entQueue-0] WARN - un.AndroidRunConfigurationBase - Can't get application ID: Android module missing
2020-01-31 14:10:04,402 [Alarm Pool] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 34 ms
I am on Ubuntu 19.04.
How can I see which Android module it's referring to as missing?
The original question was based on a misunderstand on my behalf. The Osmdroid from Github cannot be compiled into an APK.
The correct approach is to create a new empty project in Android Studio, add org.osmdroid:osmdroid-android:6.1.5 to the dependencies in build.grade, then following the examples given here: https://github.com/osmdroid/osmdroid/wiki/How-to-use-the-osmdroid-library add uses-permission, layout and then the actual code to the Main Activity. I now have a working mapping app which downloads tiles as it needs them. If I have further questions I will post separately.
Thanks to everybody who contributed.