Android : Google 个地点未显示
Android : Google places are not showing
我正在创建这个应用程序,我希望在用户在 edittext 中键入位置后立即获取 google 个位置。
我正在使用这个库 Places Auto Complete Textview ,但我没有得到任何关于地点的建议,我已经为地点 API 生成了 android 键,但我没有得到任何结果。
此外,日志没有显示任何内容,请检查此 github 存储库并告诉我那里是否缺少任何内容,或者我没有得到任何东西...
我现在收到这个错误
An exception occured during performFiltering()! java.lang.UnsupportedOperationException: Not yet implemented, please have Gson on your classpath
您正在使用的库使用 Google Places API Web Service,因此您需要在 Google 开发人员控制台中启用 API,而不是(或除此之外)Google 为 Android.
放置 API
您的项目没有正确配置 gson 库,您使用的 AutoCompleteTextView
需要类路径中的 gson。
将此依赖项添加到您的 build.gradle
文件中:
dependencies {
compile "com.google.code.gson:gson:2.3.1"
}
我正在创建这个应用程序,我希望在用户在 edittext 中键入位置后立即获取 google 个位置。 我正在使用这个库 Places Auto Complete Textview ,但我没有得到任何关于地点的建议,我已经为地点 API 生成了 android 键,但我没有得到任何结果。
此外,日志没有显示任何内容,请检查此 github 存储库并告诉我那里是否缺少任何内容,或者我没有得到任何东西...
我现在收到这个错误
An exception occured during performFiltering()! java.lang.UnsupportedOperationException: Not yet implemented, please have Gson on your classpath
您正在使用的库使用 Google Places API Web Service,因此您需要在 Google 开发人员控制台中启用 API,而不是(或除此之外)Google 为 Android.
放置 API您的项目没有正确配置 gson 库,您使用的 AutoCompleteTextView
需要类路径中的 gson。
将此依赖项添加到您的 build.gradle
文件中:
dependencies {
compile "com.google.code.gson:gson:2.3.1"
}