Manifest merger failed : Attribute uses-permission#android.permission.BLUETOOTH@maxSdkVersion value=(33) from AndroidManifest.xml:8:9-35
is also present at [xxxx.aar] AndroidManifest.xml:11:9-35 value=(30).
Suggestion: add 'tools:replace="android:maxSdkVersion"' to <uses-permission> element at AndroidManifest.xml:6:5-8:37 to override.

 

[수정]

AndroidManifest.xml

// 원본
<uses-permission
    android:name="android.permission.BLUETOOTH"
    android:maxSdkVersion="33"/>

// 수정
<uses-permission
    android:name="android.permission.BLUETOOTH"
    tools:node="replace"/>
Posted by 곰돌이짱
,

onTouchEvent 미호출

AND 2024. 12. 3. 08:29

1. dispatchTouchEvent 호출

private var mDrawViewClass: DrawViewClass? = DrawViewClass(context, attributes)

...

override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {

    mDrawViewClass?.onTouchEventEx(ev)

    return super.dispatchTouchEvent(ev)
}

 

 

2. setOnTouchListener 호출

private var mCanvasView: View? = findViewById(R.id.lo_canvas)
private var mDrawViewClass: DrawViewClass? = DrawViewClass(context, attributes)

...

mCanvasView?.setOnTouchListener(object : View.OnTouchListener {
    override fun onTouch(v: View?, event: MotionEvent): Boolean {
        mDrawViewClass?.onTouchEventEx(event)
        return true
    }
})
Posted by 곰돌이짱
,
private var mMsgView : View? = null

mMsgView.method()    // ERROR
mMsgView?.method()    // OK

 

'AND' 카테고리의 다른 글

Manifest merger failed : Attribute uses-permission  (0) 2024.12.30
onTouchEvent 미호출  (0) 2024.12.03
Loading Devices... 잠김 현상  (0) 2024.09.24
Unresolved reference: R  (0) 2022.08.31
Unresolved reference: R  (0) 2022.08.23
Posted by 곰돌이짱
,