iT邦幫忙

0

eclipse撰寫android app 在實機執行app時發生錯誤

  • 分享至 

  • xImage

我用eclipse撰寫了android app,但使用手機實機執行app時只要點擊打開地圖就會發生錯誤,以下是出現錯誤的log檔,請幫我看看是發生什麼事?如何處理?

09-09 22:40:13.420: E/AndroidRuntime(31838): FATAL EXCEPTION: main
09-09 22:40:13.420: E/AndroidRuntime(31838): java.lang.StackOverflowError
09-09 22:40:13.420: E/AndroidRuntime(31838): at com.lbe.security.service.core.client.proxy.ServiceProxy.g(Unknown Source)
09-09 22:40:13.420: E/AndroidRuntime(31838): at com.lbe.security.service.core.client.proxy.m.onTransact(Unknown Source)
09-09 22:40:13.420: E/AndroidRuntime(31838): at android.os.Binder.transact(Binder.java:310)
09-09 22:40:13.420: E/AndroidRuntime(31838): at android.os.BinderProxy.transact(Native Method)
09-09 22:40:13.420: E/AndroidRuntime(31838): at android.location.ILocationManager$Stub$Proxy.isProviderEnabled(ILocationManager.java:941)
09-09 22:40:13.420: E/AndroidRuntime(31838): at android.location.LocationManager.isProviderEnabled(LocationManager.java:1090)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:164)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:174)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:174)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:174)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:174)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:174)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:174)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:174)
09-09 22:40:13.420: E/AndroidRuntime(31838): at edu.usc.reportsystem.Map1.getLocation(Map1.java:174)

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
pantc328
iT邦高手 1 級 ‧ 2014-09-10 08:50:08
最佳解答

s609170027提到:
Location

功能沒設好,如權限…

AndroidManifest.xml 看有無設正確

好像是google console那邊的API權限問題,已解決,感謝您的回答。

我要發表回答

立即登入回答