How to debug android library module in Android Studio?

后端 未结 4 1834
离开以前
离开以前 2021-02-08 03:48

I have an Android Studio project which contains a library module, which is added as another gradle project to it. I would like to debug the library code and set breakpoints on i

4条回答
  •  滥情空心
    2021-02-08 04:33

    I set both library module Debug and Release build type to debuggable

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            debuggable true
            jniDebuggable true
        }
        debug {
            debuggable true
            jniDebuggable true
            minifyEnabled false
        }
    }
    

提交回复
热议问题