【发布时间】:2015-08-17 14:27:31
【问题描述】:
我想在我的 Android 项目中使用 Google Maps Geocoding API。所以我按照in official docs 的描述添加google-maps-services:
dependencies {
compile 'com.google.maps:google-maps-services:0.1.7'
...
}
并有这样的错误:
Unable to compute hash of .../release/classes.jar
我该如何解决?也许添加一些proguard规则?
感谢您的帮助!
【问题讨论】:
-
是的,我认为你的 proguard 有一些东西,在空项目上我一切都正确。无论如何,也许 Geocoder 会帮助你developer.android.com/reference/android/location/Geocoder.html
-
不幸的是,我必须使用谷歌地理编码库。源代码说它包含以下依赖项:
compile 'com.google.code.gson:gson:2.3.1' compile 'com.squareup.okhttp:okhttp:2.0.0' compile 'joda-time:joda-time:2.4'。我已经在我的项目中使用了所有三个库。不知道怎么配置proguard?
标签: android google-maps gradle google-maps-android-api-2 proguard