خرید بک لینک

Vote count: 0

I have a multi module project which is structured something like this.

Root
   |- Main Module (Application, Data binding enabled)
   |- Core Module (Library, Data binding enabled)

Main module depends on the Core module. Core module contains all the android tests. When I run the androidTests of just core module with testCoverageEnabled it throws some weird data binding error. All these error are for custom bindings.

:core:compileDeltaDebugAndroidTestJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core:compileDebugAndroidTestJavaWithJavac'.
> java.lang.RuntimeException: Found data binding errors.
  Caot find the setter for attribute 'app:marginStart' with parameter type int on android.widget.LinearLayout.
  file:///Users/Ajit/projects/myProject/core/build/intermediates/bundles/debug/res/layout/my_layout.xml Line:25

To resolve this, I copied the custom binding java classes to androidTest folder and that solved the above error. But then it started complaining around the BR properties. Seems like its not able to resolve the BR.java class.

MyBinding.java:87: error: caot find symbol
        case BR.name: {

Have someone face similar issue? Any kind of help would be appreciated. Thanks!

asked 37 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 8 مرداد 1395 ساعت: 1:48

صفحه بندی