Building using bazel error: Unrecognized option: --useDataBindingAndroidX #4141
-
When I used |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I finally found a solution to this! while executing these set of commands,
replace $HOME with the location where your Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
@JishnuGoyal did This might be something worth updating in https://github.com/oppia/oppia-bazel-tools#readme, but I'm on the fence since we're also waiting for Bazel 5.x (which will replace needing to use our separate tools repo altogether). |
Beta Was this translation helpful? Give feedback.
I finally found a solution to this!
while executing these set of commands,
echo build --override_repository=android_tools="$(cd "$(dirname "$HOME/opensource/oppia-bazel-tools")"; pwd)/$(basename "$HOME/opensource/oppia-bazel-tools")" > ~/.bazelrc
andecho build --android_databinding_use_androidx >> ~/.bazelrc
replace $HOME with the location where your
HOME
environment variable points. That is, your root location. For ex, for me it was/home/jishnu
.If you are not sure what is your root location,
run this in terminal:
printenv HOME
and replace the output with $HOME in the above commands everywhere
Hope this helps!