-
-
Notifications
You must be signed in to change notification settings - Fork 506
Open
Labels
Description
Hello,
My app uses the legacy view based UI, and it worked great until I added a tasks.whenTaskAdded {} block in my build.gradle.kts file.
Since then, the view is blank, and the logcat reads
E Invalid resource ID 0x00000000.
E Unable to retrieve library information given the `raw` resource identifier.
E Please make sure either the gradle plugin is properly set up, or the file is manually provided.
I Could not retrieve libraries
E Unable to read the library information
java.lang.IllegalStateException: Please provide the required library data via the available APIs.
Depending on the platform this can be done for example via `LibsBuilder().withJson()`.
For Android there exists an `LibsBuilder.withContext()`, automatically loading the `aboutlibraries.json` file from the `raw` resources folder.
When using compose or other parent modules, please check their corresponding APIs.
at com.mikepenz.aboutlibraries.Libs$Builder.build(Libs.kt:44)
at com.mikepenz.aboutlibraries.viewmodel.LibsViewModel$listItems$1$1.invokeSuspend(LibsViewModel.kt:100)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
I tried tinkering with the gradle file, but this does not change anything.
Is there a fix for this ?
This is what I tried. Using taskTree plugin, the output of both with and without seemed the same, but the issue stayed the same.
tasks.whenTaskAdded {
// MY CODE HERE
/* if (this.name == "mergeGithubConfigDebugResources" ||
this.name == "packageGithubConfigDebugResources" ||
this.name == "mapGithubConfigDebugSourceSetPaths" ||
this.name == "extractDeepLinksGithubConfigDebug"
) {
this.dependsOn("prepareLibraryDefinitionsGithubConfigDebug")
}*/
FricoRico, btrautmann and 7vahid7