How to ignore the “avoid non-default constructors in fragments” error?

后端 未结 4 959
执笔经年
执笔经年 2021-02-03 23:23

I got this error while trying to generate the signed APK. The thing is, my app is able to run and debug normally on my device. I don\'t know why when I try to generate APK, this

4条回答
  •  梦毁少年i
    2021-02-03 23:57

    Found the solution. The easier way is to add these to the gradle:

     android {
              lintOptions {
                  checkReleaseBuilds false
              }
          }
    

    Or another way is to add @SuppressLint("ValidFragment")

提交回复
热议问题