Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 346 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1

#11
The solution that works for me was to exclude the module `org.antlr:antlr4-runtime` on room dependencies as follows:

implementation ("androidx.room:room-ktx:$version_room"){
exclude group: 'org.antlr', module: 'antlr4-runtime'
}
kapt("androidx.room:room-compiler:$room_version") {
exclude group: 'org.antlr', module: 'antlr4-runtime'
}

In `build.gradle`. This solution is cleanest instead of using `resolutionStrategy` block.
Reply

#12
If someone came here for an answer and didn't find it yet, here is my case. The problem was that i didn't specify the `requireAll` parameter, turns out it must be set explicitly. So here's my code:

@BindingAdapter("firstAttr", "secondAttr", requireAll = false)
fun View.yourFunction(firstAttr: Boolean, secondAttr: Boolean = false) { ... }

Also note that you can set default value for attributes like above.
Reply

#13
For me, I used same namespace for bind & tools. It should be different.

<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:bind="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
Reply

#14
In my case the issue was caused by a wrong name package in the
"nav_graph.xml" file, in the "argument" tag, "app:argType" String.
Reply

#15
In my case, the issue occurred when I added a new field in a Room Entity file. However, once I removed this field, the problem disappeared.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through