Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android data Binding produces "Source folders generated at wrong location"

Updated to Android Studio 1.3.1 and tried to configure dataBinding

Top level gradle file contains

dependencies {     classpath 'com.android.tools.build:gradle:1.3.1'     classpath 'com.android.databinding:dataBinder:1.0-rc1' }  

Project gradle file contains

apply plugin: 'com.android.application' apply plugin: 'com.android.databinding'  android {     compileSdkVersion 22     buildToolsVersion '22.0.0' 

but I'm getting following message

Source folders generated at incorrect location

Warning:Folder /Users/myname/workspace/discoveroom/android-client/Caldroid/build/data-binding-info/debug  Warning:Folder /Users/myname/workspace/discoveroom/android-client/DiscoveroomAndroidClient/build/data-binding-info/debug  Information:3rd-party Gradle plug-ins may be the cause 

enter image description here

like image 767
kouretinho Avatar asked Aug 12 '15 12:08

kouretinho


People also ask

Is Data Binding good in Android?

Data Binding allows you to effortlessly communicate across views and data sources. This pattern is important for many Android designs, including model view ViewModel (MVVM), which is currently one of the most common Android architecture patterns.

Which is better view binding or Data Binding in Android?

ViewBinding vs DataBinding The one and only function of View Binding is to bind the views in the code, while Data Binding offers some more options like Binding Expressions, which allows us to write expressions the connect variables to the views in the layout.

What is one way and two way Data Binding in Android?

Data binding in AndroidUpdating the views from the data source is a simple one-way binding. In that case, you'll only access data from the data source and update the layout. Two-way data binding is nothing but updating the data source if there are any changes in the layout and vice versa.

What is two way Data Binding in Android?

Stay organized with collections Save and categorize content based on your preferences. The @={} notation, which importantly includes the "=" sign, receives data changes to the property and listen to user updates at the same time.


1 Answers

change

classpath 'com.android.databinding:dataBinder:1.0-rc1' 

to

classpath 'com.android.databinding:dataBinder:1.0-rc4' 
like image 100
Deinok Avatar answered Sep 17 '22 15:09

Deinok