디바이스에 GMS 가 없을 경우에 Logcat 에 다음과 같이 찍혀나올 것이다.
- Failed to find package android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms
- Google Play services missing or without correct permission.
처음에는 권한 이슈 클래스 문제인가 라고 생각했다. 그러나 자세히 보니 GMS 가 없다라는 것을 알게 되었다.
현재 중국에서 개발한 Androis OS 가 탑재된 하드웨어어는 깡통 Android OS 이다. 그래서 익히 알고 사용하고 있는 Google 서비스들이 없다.
FCM 를 사용하해서 Push Message 를 받으려고 했다. 그러나 현재 디바이스에는 GMS(Google Mobile Service) 가 없기 때문에 어떤 방법을 써서라도 GMS 깔든지, FCM 을 이용하지 않는 다른 방법으로 Push Message 를 받아야 한다.
2022-03-04 17:30:54.023 11638-11638/? I/zygote: Late-enabling -Xcheck:jni
2022-03-04 17:30:54.428 11638-11638/com.devuryu.hello I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
2022-03-04 17:30:54.540 11638-11638/com.devuryu.hello I/FirebaseCrashlytics: Initializing Firebase Crashlytics 18.2.3 for com.devuryu.hello
2022-03-04 17:30:54.547 11638-11667/com.devuryu.hello D/TransportRuntime.JobInfoScheduler: Scheduling upload for context TransportContext(cct, DEFAULT, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy1wYS5nb29nbGVhcGlzLmNvbS92MS9maXJlbG9nL2xlZ2FjeS9iYXRjaGxvZ1xBSXphU3lDY2traUg4aTJaQVJ3T3MxTEV6RktsZDE1YU9HOG96S28=) with jobId=-306300684 in 30000ms(Backend next call timestamp 1646382345081). Attempt 1
2022-03-04 17:30:54.569 11638-11678/com.devuryu.hello E/ActivityThread: Failed to find provider info for com.google.android.gms.chimera
2022-03-04 17:30:54.569 11638-11678/com.devuryu.hello W/DynamiteModule: Failed to retrieve remote module version.
2022-03-04 17:30:54.579 11638-11681/com.devuryu.hello E/FirebaseMessaging: Google Play services missing or without correct permission.
2022-03-04 17:30:54.584 11638-11678/com.devuryu.hello E/DynamiteModule: Failed to load IDynamiteLoader from GmsCore: Application package com.google.android.gms not found
2022-03-04 17:30:54.585 11638-11678/com.devuryu.hello I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:52 and remote module com.google.android.gms.measurement.dynamite:0
2022-03-04 17:30:54.586 11638-11678/com.devuryu.hello I/DynamiteModule: Selected local version of com.google.android.gms.measurement.dynamite
2022-03-04 17:30:54.593 11638-11678/com.devuryu.hello E/DynamiteModule: Failed to load IDynamiteLoader from GmsCore: Application package com.google.android.gms not found
2022-03-04 17:30:54.721 11638-11638/com.devuryu.hello I/FirebaseInitProvider: FirebaseApp initialization successful
2022-03-04 17:30:54.758 11638-11683/com.devuryu.hello V/FA: App measurement collection enabled
2022-03-04 17:30:54.770 11638-11683/com.devuryu.hello V/FA: App measurement enabled for app package, google app id: com.devuryu.hello, 1:369411098737:android:a5da901812d82fa5ebf3d0
2022-03-04 17:30:54.775 11638-11683/com.devuryu.hello I/FA: App measurement initialized, version: 43042
2022-03-04 17:30:54.775 11638-11683/com.devuryu.hello I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2022-03-04 17:30:54.776 11638-11683/com.devuryu.hello I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.devuryu.hello
2022-03-04 17:30:54.776 11638-11638/com.devuryu.hello D/Watch >>: >> MyApplication
2022-03-04 17:30:54.776 11638-11683/com.devuryu.hello D/FA: Debug-level message logging enabled
2022-03-04 17:30:54.811 11638-11690/com.devuryu.hello W/FirebaseMessaging: Failed to find package android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms
2022-03-04 17:30:54.868 11638-11638/com.devuryu.hello I/PhoneWindow: setSwipeEnabled = true
2022-03-04 17:30:54.931 11638-11678/com.devuryu.hello V/FA: onActivityCreated
2022-03-04 17:30:55.049 11638-11649/com.devuryu.hello I/zygote: Background concurrent copying GC freed 15605(4MB) AllocSpace objects, 12(240KB) LOS objects, 49% free, 1814KB/3MB, paused 784us total 220.031ms
2022-03-04 17:30:55.156 11638-11683/com.devuryu.hello V/FA: Checking service availability
2022-03-04 17:30:55.164 11638-11683/com.devuryu.hello W/GooglePlayServicesUtil: com.devuryu.hello requires the Google Play Store, but it is missing.
2022-03-04 17:30:55.166 11638-11683/com.devuryu.hello W/FA: Service invalid
2022-03-04 17:30:55.186 11638-11683/com.devuryu.hello V/FA: Using local app measurement service
2022-03-04 17:30:55.196 11638-11690/com.devuryu.hello W/Metadata: Failed to find package android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms
2022-03-04 17:30:55.197 11638-11690/com.devuryu.hello E/Metadata: Google Play services missing or without correct permission.
2022-03-04 17:30:55.256 11638-11683/com.devuryu.hello V/FA: Connection attempt already in progress
2022-03-04 17:30:55.297 11638-11683/com.devuryu.hello V/FA: Connection attempt already in progress
2022-03-04 17:30:55.369 11638-11683/com.devuryu.hello V/FA: Activity resumed, time: 18566565
2022-03-04 17:30:55.376 11638-11638/com.devuryu.hello I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@31f4168
2022-03-04 17:30:55.384 11638-11638/com.devuryu.hello D/WindowClient: Add to mViews: DecorView@55b0c14[MainActivity], this = android.view.WindowManagerGlobal@ea6cbd
2022-03-04 17:30:55.387 11638-11638/com.devuryu.hello D/OpenGLRenderer: Dumper init 2 threads <0x8a13df60>
2022-03-04 17:30:55.388 11638-11638/com.devuryu.hello D/OpenGLRenderer: <com.devuryu.hello> is running.
2022-03-04 17:30:55.396 11638-11710/com.devuryu.hello D/OpenGLRenderer: HWUI GL Pipeline
2022-03-04 17:30:55.403 11638-11683/com.devuryu.hello I/FA: Tag Manager is not found and thus will not be used
2022-03-04 17:30:55.404 11638-11638/com.devuryu.hello D/ViewRootImpl[MainActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2022-03-04 17:30:55.411 11638-11638/com.devuryu.hello V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{82012b2 com.devuryu.hello/com.devuryu.hello.ui.MainActivity,ident = 0}, this = DecorView@55b0c14[MainActivity]
2022-03-04 17:30:55.413 11638-11638/com.devuryu.hello I/Choreographer: Skipped 37 frames! The application may be doing too much work on its main thread.
2022-03-04 17:30:55.423 11638-11683/com.devuryu.hello W/GooglePlayServicesUtil: Google Play services is missing.
2022-03-04 17:30:55.524 11638-11667/com.devuryu.hello D/TransportRuntime.SQLiteEventStore: Storing event with priority=DEFAULT, name=FIREPERF for destination cct
2022-03-04 17:30:55.528 11638-11683/com.devuryu.hello V/FA: Connection attempt already in progress
2022-03-04 17:30:55.550 11638-11683/com.devuryu.hello V/FA: Connection attempt already in progress
2022-03-04 17:30:55.575 11638-11667/com.devuryu.hello D/TransportRuntime.JobInfoScheduler: Upload for context TransportContext(cct, DEFAULT, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy1wYS5nb29nbGVhcGlzLmNvbS92MS9maXJlbG9nL2xlZ2FjeS9iYXRjaGxvZ1xBSXphU3lDY2traUg4aTJaQVJ3T3MxTEV6RktsZDE1YU9HOG96S28=) is already scheduled. Returning...
2022-03-04 17:30:55.578 11638-11649/com.devuryu.hello I/zygote: Background concurrent copying GC freed 11895(1109KB) AllocSpace objects, 15(364KB) LOS objects, 49% free, 2MB/4MB, paused 338us total 111.612ms
2022-03-04 17:30:55.608 11638-11643/com.devuryu.hello I/zygote: Do partial code cache collection, code=30KB, data=25KB
2022-03-04 17:30:55.610 11638-11643/com.devuryu.hello I/zygote: After code cache collection, code=30KB, data=25KB
2022-03-04 17:30:55.610 11638-11643/com.devuryu.hello I/zygote: Increasing code cache capacity to 128KB
2022-03-04 17:30:55.722 11638-11638/com.devuryu.hello D/Surface: Surface::allocateBuffers(this=0x88c41800)
2022-03-04 17:30:55.739 11638-11710/com.devuryu.hello I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2022-03-04 17:30:55.739 11638-11710/com.devuryu.hello I/OpenGLRenderer: Initialized EGL, version 1.4
2022-03-04 17:30:55.740 11638-11710/com.devuryu.hello D/OpenGLRenderer: Swap behavior 2
2022-03-04 17:30:55.764 11638-11710/com.devuryu.hello D/OpenGLRenderer: [init] completed
2022-03-04 17:30:55.765 11638-11710/com.devuryu.hello D/HWUIExtension: MTKProgramCache.init: enable enhancement 1
2022-03-04 17:30:55.765 11638-11710/com.devuryu.hello I/HWUIExtension: Get disable program binary service property (0)
2022-03-04 17:30:55.765 11638-11710/com.devuryu.hello I/HWUIExtension: Initializing program atlas...
2022-03-04 17:30:55.766 11638-11710/com.devuryu.hello I/ProgramBinary/Service: ProgramBinaryService client side disable debugging.
2022-03-04 17:30:55.766 11638-11710/com.devuryu.hello I/ProgramBinary/Service: ProgramBinaryService client side disable binary content debugging.
2022-03-04 17:30:55.766 11638-11710/com.devuryu.hello D/ProgramBinary/Service: BpProgramBinaryService.getReady
2022-03-04 17:30:55.766 11638-11710/com.devuryu.hello D/ProgramBinary/Service: zhiyin- 1 BpProgramBinaryService::getReady()
2022-03-04 17:30:55.767 11638-11710/com.devuryu.hello D/ProgramBinary/Service: zhiyin- 2 BpProgramBinaryService::getReady()
2022-03-04 17:30:55.767 11638-11710/com.devuryu.hello D/ProgramBinary/Service: BpProgramBinaryService.getProgramBinaryData
2022-03-04 17:30:55.768 11638-11710/com.devuryu.hello I/HWUIExtension: Program binary detail: Binary length is 314816, program map length is 104.
2022-03-04 17:30:55.768 11638-11710/com.devuryu.hello I/HWUIExtension: Succeeded to mmap program binaries. File descriptor is 65, and path is /dev/ashmem.
2022-03-04 17:30:55.768 11638-11710/com.devuryu.hello I/HWUIExtension: No need to use file discriptor anymore, close fd(65).
2022-03-04 17:30:55.768 11638-11710/com.devuryu.hello D/HWUIExtension: Dumper init 2 threads <0x88a690a0>
2022-03-04 17:30:55.768 11638-11710/com.devuryu.hello D/HWUIExtension: <com.devuryu.hello> is running.
2022-03-04 17:30:55.769 11638-11710/com.devuryu.hello D/HWUIExtension: Initializing program cache from 0x0, size = -1
2022-03-04 17:30:55.769 11638-11710/com.devuryu.hello D/Surface: Surface::connect(this=0x88c41800,api=1)
2022-03-04 17:30:55.843 11638-11638/com.devuryu.hello V/FA: Local AppMeasurementService is starting up
2022-03-04 17:30:55.850 11638-11638/com.devuryu.hello D/Watch >>: >> FirebaseMessaging Failed
2022-03-04 17:30:55.863 11638-11643/com.devuryu.hello I/zygote: Do partial code cache collection, code=52KB, data=55KB
2022-03-04 17:30:55.864 11638-11643/com.devuryu.hello I/zygote: After code cache collection, code=52KB, data=55KB
2022-03-04 17:30:55.865 11638-11643/com.devuryu.hello I/zygote: Increasing code cache capacity to 256KB
2022-03-04 17:30:55.964 11638-11710/com.devuryu.hello D/HWUIExtension: MTKProgramCache.generateProgram: 0
2022-03-04 17:30:55.966 11638-11710/com.devuryu.hello D/HWUIExtension: createProgram 0x0000000000000000, binary 0x9ac06000, length 10736, format 37168 within 1667ns
2022-03-04 17:30:55.966 11638-11683/com.devuryu.hello V/FA: Upload scheduled in approximately ms: 394231
2022-03-04 17:30:55.969 11638-11683/com.devuryu.hello V/FA: Unscheduling upload
2022-03-04 17:30:55.974 11638-11683/com.devuryu.hello V/FA: Scheduling upload, millis: 394231
2022-03-04 17:30:55.978 11638-11710/com.devuryu.hello D/HWUIExtension: MTKProgramCache.generateProgram: 68719476736
2022-03-04 17:30:55.980 11638-11710/com.devuryu.hello D/HWUIExtension: createProgram 0x0000001000000000, binary 0x9ac16ac6, length 11105, format 37168 within 1365ns
2022-03-04 17:30:55.983 11638-11710/com.devuryu.hello D/HWUIExtension: MTKProgramCache.generateProgram: 562949953421313
2022-03-04 17:30:55.984 11638-11710/com.devuryu.hello D/HWUIExtension: createProgram 0x0002000000000001, binary 0x9ac0e31b, length 11565, format 37168 within 1383ns
2022-03-04 17:30:55.991 11638-11710/com.devuryu.hello D/HWUIExtension: MTKProgramCache.generateProgram: 562984313159683
2022-03-04 17:30:55.992 11638-11710/com.devuryu.hello D/HWUIExtension: createProgram 0x0002000800000003, binary 0x9ac19627, length 11483, format 37168 within 1280ns
2022-03-04 17:30:56.001 11638-11638/com.devuryu.hello V/FA: Bound to IMeasurementService interface
2022-03-04 17:30:56.003 11638-11683/com.devuryu.hello V/FA: Connected to service
2022-03-04 17:30:56.009 11638-11683/com.devuryu.hello V/FA: Processing queued up service tasks: 5
2022-03-04 17:30:56.017 11638-11683/com.devuryu.hello V/FA: Storage concurrent access okay
2022-03-04 17:30:56.076 11638-11683/com.devuryu.hello V/FA: Parsed config. version, gmp_app_id
2022-03-04 17:30:56.138 11638-11683/com.devuryu.hello D/FA: Unable to get advertising id: com.google.android.gms.common.GooglePlayServicesNotAvailableException: com.google.android.gms.measurement.internal.zzjp.zza(com.google.android.gms:play-services-measurement@@19.0.2:9)
2022-03-04 17:30:56.244 11638-11683/com.devuryu.hello V/FA: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{ga_event_origin(_o)=auto, ga_screen_class(_sc)=MainActivity, ga_screen_id(_si)=-4463279707808772326}]
2022-03-04 17:30:56.361 11638-11683/com.devuryu.hello V/FA: Upload scheduled in approximately ms: 393835
2022-03-04 17:30:56.364 11638-11683/com.devuryu.hello V/FA: Unscheduling upload
2022-03-04 17:30:56.371 11638-11683/com.devuryu.hello V/FA: Scheduling upload, millis: 393835
2022-03-04 17:30:56.378 11638-11683/com.devuryu.hello V/FA: Background event processing time, ms: 141
2022-03-04 17:30:56.407 11638-11683/com.devuryu.hello V/FA: Saving default event parameters, appId, data size: com.devuryu.hello, 2
2022-03-04 17:31:01.444 11638-11683/com.devuryu.hello V/FA: Inactivity, disconnecting from the service
2022-03-04 17:31:01.451 11638-11638/com.devuryu.hello V/FA: onUnbind called for intent. action: com.google.android.gms.measurement.START
2022-03-04 17:31:01.456 11638-11638/com.devuryu.hello V/FA: Local AppMeasurementService is shutting down
2022-03-04 17:31:24.698 11638-11667/com.devuryu.hello D/TransportRuntime.CctTransportBackend: Making request to: https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog
2022-03-04 17:31:24.706 11638-11667/com.devuryu.hello I/zygote: The ClassLoaderContext is a special shared library.
2022-03-04 17:31:24.729 11638-11667/com.devuryu.hello D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2022-03-04 17:31:24.788 11638-11667/com.devuryu.hello D/libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
2022-03-04 17:31:24.799 11638-11667/com.devuryu.hello I/System.out: port:443
2022-03-04 17:31:25.449 11638-11667/com.devuryu.hello I/System.out: [OkHttp] sendRequest>>
2022-03-04 17:31:25.451 11638-11667/com.devuryu.hello I/System.out: [OkHttp] sendRequest<<
2022-03-04 17:31:27.854 11638-11667/com.devuryu.hello I/TransportRuntime.CctTransportBackend: Status Code: 200
2022-03-04 17:31:27.857 11638-11667/com.devuryu.hello I/TransportRuntime.CctTransportBackend: Content-Type: application/json; charset=UTF-8
2022-03-04 17:31:27.857 11638-11667/com.devuryu.hello I/TransportRuntime.CctTransportBackend: Content-Encoding: gzip
반응형
'Dev > Android' 카테고리의 다른 글
Jetpack Compose - 1 (0) | 2022.03.30 |
---|---|
[Android] 꺼진 화면 켜기 (0) | 2022.03.24 |
Firebase Emulator Firestore 연결 - Error (0) | 2022.03.02 |
Android Gradle 빌드파일 - build.gradle.kts 참고 (0) | 2021.07.13 |
[UI/UX] 서비스마다 제각각인 비밀번호 텍스트 창 (0) | 2021.07.06 |