Skip to content

cckroets/AS_3_6_DataBinding_Bug

Repository files navigation

AS_3_6_DataBinding_Bug

Demos a bug in resolving Binding files in AS 3.6 with custom resource dirs

Issue tracked here: https://issuetracker.google.com/issues/149630915

Defining custom resource directories like so:

    defaultConfig {
        sourceSets {
            main.res.srcDirs = [
                    'src/main/res/one',
                    'src/main/res/two'
            ]
        }
    }

Will make AS 3.6 not resolve DataBinding classes

package com.github.cckroets.mylibrary;

// AS 3.6 gives: 'Cannot resolve symbol'
import com.github.cckroets.mylibrary.databinding.HelloWorld1Binding;

public class HelloWorldData1 {

    private HelloWorld1Binding binding;
}

About

Demos multiple DataBinding bugs in AS 3.6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages