dart
dart copied to clipboard
Enveiroment didn't see Henson class
Hi, i'm trying this libs for my new project, my gradle version is 2.2.0. I added:
compile 'com.f2prateek.dart:dart:2.0.1'
provided 'com.f2prateek.dart:dart-processor:2.0.1'
compile 'com.f2prateek.dart:henson:2.0.1'
provided 'com.f2prateek.dart:henson-processor:2.0.1'
in my build.gradle file on the app level.
In activity i added
Intent intent = Henson.with(this) ....
and there i get an error like "Cannot resolve symbol 'Henson'".
What i'm doing wrong?
Hi Pavel,
try to customize the directory where the Henson class is generated (see the preprocessor option to use in the readme), then be sure to import the class that is generated.
2016-11-25 8:38 GMT-08:00 Pavel [email protected]:
Hi, i'm trying this libs for my new project, my gradle version is 2.2.0. I added:
compile 'com.f2prateek.dart:dart:2.0.1' provided 'com.f2prateek.dart:dart-processor:2.0.1' compile 'com.f2prateek.dart:henson:2.0.1' provided 'com.f2prateek.dart:henson-processor:2.0.1'
in my build.gradle file on the app level.
In activity i added
Intent intent = Henson.with(this) .... and there i get an error like "Cannot resolve symbol 'Henson'". What i'm doing wrong?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/141, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33ayO7JXcTXmJhjFbrTsEH-ErLABIks5rBw77gaJpZM4K8lsi .
@stephanenicolas thanks for your answer. Can you provide more info how to do it?
I added this piece of code to gradle (app level)
apt { arguments { "dart.henson.package" "my package" } }
but compiler tells:
Error:Could not find method apt() for arguments [build_70meopep2aby0v0o6k8buu9sb$_run_closure2@1e408d0b] on project ':app' of type org.gradle.api.Project.
Also, i've read that i should specify something like this instead apt {}:
dependencies {
....
annotationProcessor 'What i should write here?'
}
And another question - Can i use ButterKnife and this library?
apt { arguments { "dart.henson.package" "your.package.name" } }
2016-11-25 13:22 GMT-08:00 Pavel [email protected]:
@stephanenicolas https://github.com/stephanenicolas thanks for your answer. Can you provide more info how to do it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/141#issuecomment-263023767, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33SnA0BFwfnSCcrGessIZVazVwPiSks5rB1GmgaJpZM4K8lsi .
I have a same problem. It is occurred to upper gradle version 2.2. We can't use apt but use annotationProcessor. So, how can i use it?
Sorry, I don't understand your issue. Can you be more clear please ?
2017-01-16 20:45 GMT-08:00 sharpness9 [email protected]:
I have a same problem. It is occurred to upper gradle version 2.2. We can't use apt but use annotationProcessor. So, how can i use it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/141#issuecomment-273021551, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33fAKFVz1Qn6ybuz3Zc20YDf3DNOdks5rTEdZgaJpZM4K8lsi .
Sorry.
When i I added this piece of code to gradle (app level) this code
apt { arguments { "dart.henson.package" "your.package.name" } }
i got this error
Error:(55, 0) Could not find method apt() for arguments [build_29lncs2yc9xertwh0n4194bem$_run_closure3@1f8ee658] on project ':app' of type org.gradle.api.Project.
so, i added this code to gradle to fix up
apply plugin: 'com.neenbedankt.android-apt'
but i got this error
Error:Could not get unknown property 'classpath' for task ':app:transformJackWithJackForDebug' of type com.android.build.gradle.internal.pipeline.TransformTask.
so, how can i fix it?
Sorry, it's not possible to clearly understand what happens. The best would be that you setup a small GH project where the project happens.
2017-01-17 23:58 GMT-08:00 sharpness9 [email protected]:
Sorry.
When i I added this piece of code to gradle (app level) this code
apt { arguments { "dart.henson.package" "your.package.name" } } i got this error
Error:(55, 0) Could not find method apt() for arguments [build_ 29lncs2yc9xertwh0n4194bem$_run_closure3@1f8ee658] on project ':app' of type org.gradle.api.Project.
so, i added this code to gradle to fix up apply plugin: 'com.neenbedankt.android-apt'
but i got this error
Error:Could not get unknown property 'classpath' for task ':app:transformJackWithJackForDebug' of type com.android.build.gradle.internal.pipeline.TransformTask.
so, how can i fix it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/141#issuecomment-273407944, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33bPF6L3mFDRdJg9Sx_i1z2SYxuFWks5rTcYSgaJpZM4K8lsi .
I think this is because OP is trying to use the new gradle annotationProcessor instead of apt. You can check the migration guide here
This should work well, both ways are valid with henson and dart.
2017-01-30 21:54 GMT-08:00 Frederic Portaria-Janicki < [email protected]>:
I think this is because OP is trying to use the new gradle annotationProcessor instead of apt. You can check the migration guide here https://bitbucket.org/hvisser/android-apt/wiki/Migration
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/141#issuecomment-276281637, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33aTIhYgPZGdiSCXTRtkkCotbL_aiks5rXsyygaJpZM4K8lsi .