Android studio - App with library project fails to build

后端 未结 2 1873
一生所求
一生所求 2020-12-05 04:43

I\'m having massive trouble trying to get my app project to build. I have the main app module and a library project module as shown below:

2条回答
  •  时光取名叫无心
    2020-12-05 04:58

    Just explicitly tells gradle that your library project must not being minified by adding/modifying section

    android/buildTypes/debug
    

    of your library project's build.gradle file like this (minifyEnabled false is the key):

    android {
    ...
        buildTypes {
            debug {
                debuggable true
                minifyEnabled false
            }
    ...
        }
    ...
    }
    

    Note:

    Here, I also instruct explicitly gradle to make my 'debug' build debuggable (debuggable true).

提交回复
热议问题