Search code examples
androidosmdroid

I get an error on getInstance() method even though i followed the osmdroid documentation correctly


getInstance() shows an error after following the doc correctly. but i need to know what version to be used here:

dependencies {
    compile 'org.osmdroid:osmdroid-android:(INSERT_VERSION_HERE):release@aar'
}

LINK https://github.com/osmdroid/osmdroid/wiki/How-to-use-the-osmdroid-library#main-activityenter image description here

Any help?


Solution

  • Use the latest version in a way specified at the documentation here :

    compile 'org.osmdroid:osmdroid-android:5.6.5'
    

    You can always check which version is the latest on github.