Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too many bug at different gradle version #41

Open
lozn00 opened this issue Aug 18, 2021 · 4 comments
Open

too many bug at different gradle version #41

lozn00 opened this issue Aug 18, 2021 · 4 comments

Comments

@lozn00
Copy link

lozn00 commented Aug 18, 2021

gradle 7.0 ,databindutil not exist ,unless use

//    implementation 'androidx.databinding:library:3.2.0-alpha11'
//    implementation 'androidx.databinding:databinding-runtime:7.0.0'

and
tip need set
{
databinding true}
but i delete xml everything is ok!

@lozn00
Copy link
Author

lozn00 commented Aug 18, 2021

use gradle 4.2 tip Could not find androidx.databinding:viewbinding:4.2.0.

@lozn00
Copy link
Author

lozn00 commented Aug 18, 2021

//Could not find androidx.databinding:viewbinding:4.2.0.
implementation 'androidx.databinding:databinding-common:4.1.3'

// implementation 'androidx.databinding:library:3.2.0-alpha11'
// implementation 'androidx.databinding:databinding-runtime:7.0.0'

can you introducde it how to work ,this library

@lozn00
Copy link
Author

lozn00 commented Aug 18, 2021

why so set

    buildFeatures{
        dataBinding {
            enabled = true
        }
    }

not find databindutil,
and util

@lozn00
Copy link
Author

lozn00 commented Aug 18, 2021

ndroid.databinding.tool.processing.ScopedException: [databinding] {"msg":"Found \u003clayout\u003e but data binding is not enabled.\n\nAdd buildFeatures.dataBinding \u003d true to your build.gradle to enable it.","file":"C:\\project\\SoTrun\\app\\src\\main\\res\\layout\\fragment_my.xml","pos":[]}
	at android.databinding.tool.util.L.tryToThrowScoped(L.java:98)
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
        classpath "com.android.tools.build:gradle:7.0.0"

build.grade enable =true has set, problem is set xml node cause error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant