build.gradle上的JTS拓扑套件1.15.0

问题描述 投票:1回答:1

我想在我的Android Studio项目中使用JTS Topology Suite 1.15.0。我之前从生动解决方案中使用了1.13。现在我找不到1.15.0的build.gradle代码。它的Maven代码就像this

<dependency>
    <groupId>org.locationtech.jts</groupId>
    <artifactId>jts-core</artifactId>
    <version>${jts.version}</version>
</dependency>

所以在我的书呆子里,我写道

compile group: 'org.locationtech.jts', name: 'jts-core', version: '1.15'

但它无法解决这个问题。我究竟做错了什么?

android maven android-studio build.gradle jts
1个回答
1
投票

尝试使用version: '1.15.0'。实际的下载位置是https://jcenter.bintray.com/org/locationtech/jts/jts-core/1.15.0/,因此您需要将.0添加到版本号。

在Gradle 3中它是:implementation 'org.locationtech.jts:jts-core:1.15.0'

© www.soinside.com 2019 - 2024. All rights reserved.