Error: The internal fragment of this fragment must be static [ValidFragment]

why when compiling the project, it works without errors, but when I want to build the generated apk, it gives me this error:

Error: The internal fragment of this fragment must be static [ValidFragment]

and how to fix it?

+3


source to share


1 answer


Thats lint error, you are probably building with gradle, to disable interrupt on error add:

lintOptions {
    abortOnError false
}

      



to build .gradle, or better fix the problem in code. Read more about this specific error here: Inner class of fragment must be static

+6


source







All Articles