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

Error:(22) No resource identifier found for attribute 'isDone' in package 'com.myapp #14

Open
SuperMasterBlasterLaser opened this issue Apr 16, 2017 · 6 comments

Comments

@SuperMasterBlasterLaser

I have just added your project in my gradle and it throws me this error during the sync:

C:\Users\Daniq\.android\build-
    cache\47f85a58837f42204ad53113b8b4916ad78affec\output\res\layout\date_time_range_picker.xml
    Error:(22) No resource identifier found for attribute 'isDone' in package 'com.myapp'
    Error:(39) No resource identifier found for attribute 'isVisible' in package 'com.myapp'
    Error:(52) No resource identifier found for attribute 'isVisible' in package 'com.myapp'
    Error:(98) No resource identifier found for attribute 'isVisible' in package 'com.myapp'
    Error:(111) No resource identifier found for attribute 'isVisible' in package 'com.myapp'
    Error:(28, 21) No resource type specified (at 'isDone' with value '@{viewModel.isCompletable}').
    Error:(50, 26) No resource type specified (at 'isVisible' with value '@{!viewModel.hasStartDate}').
@SuperMasterBlasterLaser
Copy link
Author

I think you have not included your own xml layout attributes

@ncherian
Copy link

Is there a solution for this error ?

@SuperMasterBlasterLaser
Copy link
Author

SuperMasterBlasterLaser commented Apr 18, 2017

@ncherian What I have done.

I have forked this project and added my fork as gralde module in my android project. Then in my main gradle (app module) I have added this inside android:

dataBinding {
    enabled = true
}

@markuspaschi
Copy link

Worked with Android Studio pre 3.0. Now i face this error:
Did anyone come up with a solution?

Error:Execution failed for task ':app:compileReleaseJavaWithJavac'.

android.databinding.tool.util.LoggedErrorException: Found data binding errors.
****/ data binding error ****msg:Cannot find the setter for attribute 'app:isDone' with parameter type android.databinding.ObservableBoolean on android.support.v7.widget.Toolbar.
file:C:\Users\marku.gradle\caches\transforms-1\files-1.1\DateTimeRangePicker-v1.3.aar\80f3a844e0a9f0e3c9f07dd88e0eb0f2\res\layout\date_time_range_picker.xml
loc:27:22 - 27:44
****\ data binding error ****

@DeevD
Copy link

DeevD commented Dec 18, 2017

can i get this project sample .. i can't found simple app from this library

@HasanMhdAmin
Copy link

in date_time_range_picker.xml just changed:

xmlns:app="http://schemas.android.com/apk/res-auto"
to:
xmlns:app="http://schemas.android.com/apk/lib/xxx.yyy.zzz"

xxx.yyy.zzz is your package name

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

5 participants