在android应用程序中集成GooglePlaceAPI

在android应用程序中集成GooglePlaceAPI,android,Android,我正在关注这个链接 我下载了GooglePlaceAPI的示例代码 当我运行项目并点击按钮时,它会强制关闭并在logcat出错 com.google.api.client.http.apache.ApacheHttpTransport',引用 来自方法hung.vo.PlaceRequest Could not find class 'hung.vo.PlaceRequest$1', referenced from method hung.vo.PlaceRequest.createReque

我正在关注这个链接

我下载了GooglePlaceAPI的示例代码

当我运行项目并点击按钮时,它会强制关闭并在logcat出错

com.google.api.client.http.apache.ApacheHttpTransport',引用 来自方法hung.vo.PlaceRequest

Could not find class 'hung.vo.PlaceRequest$1', referenced from method hung.vo.PlaceRequest.createRequestFactory

Could not find class 'com.google.api.client.http.GenericUrl', referenced from method hung.vo.PlaceRequest.performSearch

Caused by: java.lang.VerifyError: hung.vo.PlaceRequest hung.vo.hung.vo.GooglePlaceActivity$SearchSrv.doInBackground(GooglePlaceActivity.java:36)
在GooglePlaceActivity中,第36行是

pl=新PlaceRequest.performSearch


在android清单文件中添加此行

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />