Can I use Android data-binding with Maven?

monacotoni

There's a beta release of a data-binding library by Google. According to the docs

To use data binding, Android Plugin for Gradle 1.3.0-beta1 or higher is required.

In my project I need to use Maven instead. I'm trying to set up a minimal initial project. The problem is that the new data-binding library somehow mangles processing of the XML layout file that generates the R class and probably requires a gradle plugin: android/databinding/tool/DataBinderPlugin

There is no information on how to handle this without Gradle. Does anyone know what needs to be done to make this run with Maven as well?

George Mount

There hasn't been a lot of effort put into this since most developers use gradle. That said, I did a quick bit of development to try to enable make builds that you could try out. There is a class android.databinding.tool.MakeCopy that you can try to run. It is a command line interface that copies resources from one or more directories to a target directory, modifies the layout files, and generates some artifacts that are required by the annotation processor (xml files, source files).

It should be included in the library with the annotation processor. You'll have to work out the full class path requirements to get it to work. As I said, I didn't spend a lot of time getting it going because we didn't have any clients for it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I use the ngClass with data binding?

From Dev

AngularJS - Can I use data binding value depending on ternary operator

From Dev

How can I use a directive in a component with data binding?

From Dev

Where can I see the code generated by Android Data Binding Library?

From Dev

Android Data Binding - how to use ViewStub with data binding

From Dev

How to use method of object in Android data binding?

From Dev

How can I pass multiple arguments via xml for a custom setter when using Android data binding

From Dev

Can I use a Maven plugin (enunciate) in Gradle?

From Dev

How can I add a `/` to an attribute I'm binding data to?

From Dev

How can I use a Maven project as a dependency to another Maven project?

From Dev

How can I use a Maven project as a dependency to another Maven project?

From Dev

How can I use !! as part of my .inputrc keyboard binding?

From Dev

How can I use Laravel form model binding with bootstrap?

From Dev

How can I use Laravel form model binding with bootstrap?

From Dev

angular geocoder fails when I use data binding

From Java

How to use Data Binding and Kotlin in Android Studio 3.0.0

From Dev

How to use SortedList in RecyclerView with Android data binding library?

From Dev

Android how to use a string variable inside a textview with data binding

From Dev

Where can I find XML Data Binding Wizard in Delphi?

From Dev

How can I put a condition inside a data binding in AngularJS?

From Dev

how can I pass dynamically data to a knockout template binding

From Dev

Android Data Binding : can't find the setter for attribute

From Dev

Can not Find Symbol Method for setHandler in Data Binding Library in Android Studio

From Java

I want to concat two strings for a TextView in android, Data Binding Api

From Dev

Android Data Binding NoSuchMethodError

From Dev

Android Data Binding and Kotlin

From Dev

Android + Data Binding @style

From Dev

Android Data Binding SetSupportActionBar

From Dev

Android Data Binding NoSuchMethodError

Related Related

  1. 1

    How can I use the ngClass with data binding?

  2. 2

    AngularJS - Can I use data binding value depending on ternary operator

  3. 3

    How can I use a directive in a component with data binding?

  4. 4

    Where can I see the code generated by Android Data Binding Library?

  5. 5

    Android Data Binding - how to use ViewStub with data binding

  6. 6

    How to use method of object in Android data binding?

  7. 7

    How can I pass multiple arguments via xml for a custom setter when using Android data binding

  8. 8

    Can I use a Maven plugin (enunciate) in Gradle?

  9. 9

    How can I add a `/` to an attribute I'm binding data to?

  10. 10

    How can I use a Maven project as a dependency to another Maven project?

  11. 11

    How can I use a Maven project as a dependency to another Maven project?

  12. 12

    How can I use !! as part of my .inputrc keyboard binding?

  13. 13

    How can I use Laravel form model binding with bootstrap?

  14. 14

    How can I use Laravel form model binding with bootstrap?

  15. 15

    angular geocoder fails when I use data binding

  16. 16

    How to use Data Binding and Kotlin in Android Studio 3.0.0

  17. 17

    How to use SortedList in RecyclerView with Android data binding library?

  18. 18

    Android how to use a string variable inside a textview with data binding

  19. 19

    Where can I find XML Data Binding Wizard in Delphi?

  20. 20

    How can I put a condition inside a data binding in AngularJS?

  21. 21

    how can I pass dynamically data to a knockout template binding

  22. 22

    Android Data Binding : can't find the setter for attribute

  23. 23

    Can not Find Symbol Method for setHandler in Data Binding Library in Android Studio

  24. 24

    I want to concat two strings for a TextView in android, Data Binding Api

  25. 25

    Android Data Binding NoSuchMethodError

  26. 26

    Android Data Binding and Kotlin

  27. 27

    Android + Data Binding @style

  28. 28

    Android Data Binding SetSupportActionBar

  29. 29

    Android Data Binding NoSuchMethodError

HotTag

Archive