Compiling version 4.2, Java errors in source?

46 views
Skip to first unread message

Matthew Hague

unread,
Jun 16, 2022, 6:22:29 PM6/16/22
to OsmAnd
Hi,

I am currently trying to build version 4.2.4 of OsmAnd, using the commits specified in the Jenkins. However, when compiling the OsmAnd project, i run into several basic Java errors. E.g.

OsmAnd/src/net/osmand/plus/views/layers/MapMarkersLayer.java:859: error: incompatible types: float cannot be converted to Double
                 outlinePattern.add(35 / getMapDensity());

In the version 4.2.2 there was one such error, now there are 3 in 4.2.4. Since these are supposed to be stable builds, it makes me think i'm missing something. Is there some compile option i should be setting to automatically widen the float to double before auto-boxing?

I am building with the command line

    $ gradle assembleAndroidFullLegacyFatRelease

Using NDK 23c and Java 11.

Thanks.

Dmytro Prodchenko

unread,
Jun 20, 2022, 2:03:28 AM6/20/22
to OsmAnd
Hi! It's better to ask this on GitHub https://github.com/osmandapp/OsmAnd/issues
Reply all
Reply to author
Forward
0 new messages