2014-11-30 3 views
0

사용자 정의 아이콘은 안드로이드

ArrayList<MarkerOptions> markers = new returnMapStuff().getStopsList(data); 
 

 
. 
 
. 
 
. 
 

 
for(int i=0; i<markers.size();i++){(markers.get(i)).icon(BitmapDescriptorFactory.fromPath("icons/star.png"));}
궁금

11-30 20:27:39.559 3026-3026/? W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0xa62e2288) 
 
11-30 20:27:39.559 3026-3026/? E/AndroidRuntime﹕ FATAL EXCEPTION: main 
 
    java.lang.RuntimeException: Unable to create service com.google.android.gms.gcm.GcmService: java.lang.SecurityException: attempting to read gservices without permission: Neither user 10050 nor current process has com.google.android.providers.gsf.permission.READ_GSERVICES. 
 
      at android.app.ActivityThread.handleCreateService(ActivityThread.java:2373) 
 
      at android.app.ActivityThread.access$1600(ActivityThread.java:130) 
 
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277) 
 
      at android.os.Handler.dispatchMessage(Handler.java:99) 
 
      at android.os.Looper.loop(Looper.java:137) 
 
      at android.app.ActivityThread.main(ActivityThread.java:4745) 
 
      at java.lang.reflect.Method.invokeNative(Native Method) 
 
      at java.lang.reflect.Method.invoke(Method.java:511) 
 
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 
 
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 
 
      at dalvik.system.NativeStart.main(Native Method) 
 
    Caused by: java.lang.SecurityException: attempting to read gservices without permission: Neither user 10050 nor current process has com.google.android.providers.gsf.permission.READ_GSERVICES. 
 
      at android.app.ContextImpl.enforce(ContextImpl.java:1319) 
 
      at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1348) 
 
      at android.content.ContextWrapper.enforceCallingOrSelfPermission(ContextWrapper.java:448) 
 
      at gsh.c(SourceFile:107) 
 
      at gsh.a(SourceFile:121) 
 
      at gsh.a(SourceFile:182) 
 
      at bek.a(SourceFile:137) 
 
      at com.google.android.gms.gcm.GcmService.onCreate(SourceFile:209) 
 
      at android.app.ActivityThread.handleCreateService(ActivityThread.java:2363) 
 
            at android.app.ActivityThread.access$1600(ActivityThread.java:130) 
 
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277) 
 
            at android.os.Handler.dispatchMessage(Handler.java:99) 
 
            at android.os.Looper.loop(Looper.java:137) 
 
            at android.app.ActivityThread.main(ActivityThread.java:4745) 
 
            at java.lang.reflect.Method.invokeNative(Native Method) 
 
            at java.lang.reflect.Method.invoke(Method.java:511) 
 
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 
 
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 
 
            at dalvik.system.NativeStart.main(Native Method) 
 
11-30 20:27:39.563  358-368/system_process W/ActivityManager﹕ Process com.google.android.gms has crashed too many times: killing!

맵을 왜 내 안드로이드 맵 반함 난 ... 어떻게 할 수있는 사용자 정의 마커를 구현하려고 할 때 나는 마커에 대한 사용자 정의 아이콘을 사용하고 아이콘 유형/크기/해상도는 어떻습니까? 그것은 다음과 같습니다 로그에서

+0

로그를 게시하십시오 (응용 프로그램이 부숴 질 때) – Rami

답변

0

문제입니다 :

Caused by: java.lang.SecurityException: attempting to read gservices without permission: Neither user 10050 nor current process has com.google.android.providers.gsf.permission.READ_GSERVICES. 

는 어느 쪽이든 당신은 매니페스트 권한을 제공해야하거나 한 경우는 servies를 재생 구글에서 버그가 수 있습니다.

READ_GSERVICES에서 Google 검색을 수행하면 Google Play 서비스의 버그임을 나타내는 몇 가지 항목이 표시됩니다.

+0

내 매니페스트에 해당 종류의 권한이 포함되어 있습니다 ... 버그 인 경우 문제를 해결하려면 어떤 것이 있습니까 ??? – lycastos

관련 문제