21.11.29 00:15 작성
·
937
0
이 화면에서 북마크를 클릳하면 에러가 발생합니다.
11/29 00:09:17: Launching 'app' on Pixel 2 API 29.
Install successfully finished in 832 ms.
$ adb shell am start -n "kr.co.soncampus.mymango/kr.co.soncampus.mymango.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 10156 on device 'emulator-5554'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
D/FirebaseAuth: Notifying id token listeners about user ( cb3Our6w2RfgpDYXJfzNoipE0tB2 ).
I/FirebaseInitProvider: FirebaseApp initialization successful
W/RenderThread: type=1400 audit(0.0:41): avc: denied { write } for name="property_service" dev="tmpfs" ino=6860 scontext=u:r:untrusted_app:s0:c158,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:55 and remote module com.google.android.gms.measurement.dynamite:54
Selected local version of com.google.android.gms.measurement.dynamite
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation
D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
V/FA: onActivityCreated
V/FA: App measurement collection enabled
App measurement enabled for app package, google app id: kr.co.soncampus.mymango, 1:667758425658:android:76621f75212078a2352703
I/FA: App measurement initialized, version: 46000
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app kr.co.soncampus.mymango
D/FA: Debug-level message logging enabled
W/ncampus.mymang: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
V/FA: Connecting to remote service
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 4720949
I/FA: Tag Manager is not found and thus will not be used
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
D/HostConnection: HostConnection::get() New Host Connection established 0xdb94f550, tid 10197
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xdb91a480: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
W/Gralloc3: mapper 3.x is not supported
D/HostConnection: createUnique: call
D/HostConnection: HostConnection::get() New Host Connection established 0xdb94f690, tid 10197
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
D/eglCodecCommon: allocate: Ask for block of size 0x1000
allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 5
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
V/FA: Recording user engagement, ms: 3007
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@e8b73bd
V/FA: onActivityCreated
V/FA: Activity paused, time: 4723957
E/sss: main.....
V/FA: Activity resumed, time: 4724008
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/sss: Main onCreateOptionsMenu.....
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
V/FA: Inactivity, disconnecting from the service
W/ncampus.mymang: Accessing hidden field Landroid/widget/AbsListView;->mIsChildViewEnabled:Z (greylist, reflection, allowed)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 15 lines
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 13 lines
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/sss: item1
V/FA: Recording user engagement, ms: 11407
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c9f27a5
V/FA: onActivityCreated
V/FA: Connecting to remote service
V/FA: Connection attempt already in progress
Activity paused, time: 4735416
V/FA: Activity resumed, time: 4735501
V/FA: Connection attempt already in progress
Connection attempt already in progress
W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/sss: Sub2 onCreateOptionsMenu.....
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 2 lines
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
V/FA: Inactivity, disconnecting from the service
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@81fc038
V/FA: Recording user engagement, ms: 6581
V/FA: onActivityCreated
E/BookmarkActivity sss: entry ....................0
E/BookmarkActivity sss: entry ....................99
V/FA: Connecting to remote service
V/FA: Connection attempt already in progress
Activity paused, time: 4742083
V/FA: Activity resumed, time: 4742120
V/FA: Connection attempt already in progress
Connection attempt already in progress
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0)
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
E/BookmarkActivity sss: entry ....................1
D/Datamodel: DataSnapshot { key = -MparmEFOESJUm_PjL5q, value = {imageUrl=https://s3-ap-northeast-1.amazonaws.com/dcreviewsresized/20211004092323023_photo_b2b78b1ad87d.jpg, titleText=설문커피, id=2, url=https://www.diningcode.com/profile.php?rid=9Vyv53tNcc8h} }
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: kr.co.soncampus.mymango, PID: 10156
com.google.firebase.database.DatabaseException: Class kr.co.soncampus.mymango.ContentsModel does not define a no-argument constructor. If you are using ProGuard, make sure these constructors are not stripped.
at com.google.firebase.database.core.utilities.encoding.CustomClassMapper$BeanMapper.deserialize(CustomClassMapper.java:570)
at com.google.firebase.database.core.utilities.encoding.CustomClassMapper$BeanMapper.deserialize(CustomClassMapper.java:563)
at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertBean(CustomClassMapper.java:433)
at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.deserializeToClass(CustomClassMapper.java:232)
at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertToCustomClass(CustomClassMapper.java:80)
at com.google.firebase.database.DataSnapshot.getValue(DataSnapshot.java:203)
at kr.co.soncampus.mymango.BookmarkActivity$onCreate$1.onDataChange(BookmarkActivity.kt:49)
at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75)
at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63)
at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
I/Process: Sending signal. PID: 10156 SIG: 9
Connected to process 10236 on device 'emulator-5554'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
D/FirebaseAuth: Notifying id token listeners about user ( cb3Our6w2RfgpDYXJfzNoipE0tB2 ).
I/FirebaseInitProvider: FirebaseApp initialization successful
W/RenderThread: type=1400 audit(0.0:42): avc: denied { write } for name="property_service" dev="tmpfs" ino=6860 scontext=u:r:untrusted_app:s0:c158,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:55 and remote module com.google.android.gms.measurement.dynamite:54
Selected local version of com.google.android.gms.measurement.dynamite
D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
V/FA: onActivityCreated
V/FA: App measurement collection enabled
V/FA: App measurement enabled for app package, google app id: kr.co.soncampus.mymango, 1:667758425658:android:76621f75212078a2352703
I/FA: App measurement initialized, version: 46000
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app kr.co.soncampus.mymango
D/FA: Debug-level message logging enabled
W/ncampus.mymang: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
V/FA: Connecting to remote service
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 4743636
I/FA: Tag Manager is not found and thus will not be used
V/FA: Connection attempt already in progress
Connection attempt already in progress
D/HostConnection: HostConnection::get() New Host Connection established 0xdb94c410, tid 10275
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xdb91a600: maj 2 min 0 rcv 2
W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
D/EGL_emulation: eglMakeCurrent: 0xdb91a600: ver 2 0 (tinfo 0xdb90fa50)
W/Gralloc3: mapper 3.x is not supported
D/HostConnection: createUnique: call
HostConnection::get() New Host Connection established 0xdb94c690, tid 10275
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
D/eglCodecCommon: allocate: Ask for block of size 0x1000
allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000
D/EGL_emulation: eglMakeCurrent: 0xdb91a600: ver 2 0 (tinfo 0xdb90fa50)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
D/sss: Sub2 onCreateOptionsMenu.....
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 5
V/FA: Inactivity, disconnecting from the service
------------------------------------------
데이터는 두 건이 있습니다.
프로그램 소스입니다.
package kr.co.soncampus.mymango
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.method.TextKeyListener.clear
import android.util.Log
import android.widget.ArrayAdapter
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.ktx.auth
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.ValueEventListener
import com.google.firebase.database.core.RepoManager.clear
import com.google.firebase.database.ktx.database
import com.google.firebase.ktx.Firebase
class BookmarkActivity : AppCompatActivity() {
private lateinit var auth: FirebaseAuth
private val contentsModels = mutableListOf<ContentsModel>()
override fun onCreate(savedInstanceState: Bundle?) {
auth = Firebase.auth
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_bookmark)
val rv = findViewById<RecyclerView>(R.id.rv1)
val rvAdapter = RVAdapter(baseContext, contentsModels)
rv.adapter = rvAdapter
rv.layoutManager = GridLayoutManager(this, 2)
val database = Firebase.database
val myBookmarkRef = database.getReference("bookmark_ref")
Log.e("BookmarkActivity sss", " entry ....................0")
myBookmarkRef
.child(auth.currentUser?.uid.toString())
.addValueEventListener(object : ValueEventListener{
override fun onDataChange(snapshot: DataSnapshot) {
Log.e("BookmarkActivity sss", " entry ....................1")
for (dataModel in snapshot.children) {
Log.d("Datamodel", dataModel.toString())
contentsModels.add(dataModel.getValue(ContentsModel::class.java)!!)
}
Log.e("BookmarkActivity sss", " entry ....................2")
rvAdapter.notifyDataSetChanged()
}
override fun onCancelled(error: DatabaseError) {
Log.e("Bookmark", "dbError")
}
})
Log.e("BookmarkActivity sss", " entry ....................99")
}
}
---------------------------------------
package kr.co.soncampus.mymango
data class ContentsModel (
val id : Int,
val url : String = "",
val imageUrl : String,
val titleText : String = ""
)
------------------------------------------