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
Compiler error #254
Comments
Hi Johnny, I published new version of RoboBinding today. Are you using different version of codegen with robobinding framework? If you look into robobinding under your local maven repository .m2. You should see the latest robobinding and codegen. Please have a check. I removed Google Guava dependency in the new version for both codegen and RoboBinding framework. I suspect your codegen version is not up-to-date. Do a sync in Android Studio may resolve your issue. |
Please explain. Different version of codegen with robobinding? And I can't find .m2 file in my project? allprojects { and here's my src gradle: apply plugin: 'com.android.application' android {
// }
// lintOptions {
// compile 'joda-time:joda-time:2.4'
} |
Take window as an example, your local maven repository path should be C:\Users[username].m2\repository. And you can locate robobinding by C:\Users[username].m2\repository\org\robobinding. Have a check the downloaded robobinding related jars. and try to delete all the subdirs under C:\Users[username].m2\repository\org\robobinding, and then re-sync your project in Android Studio. Don't worry. I will assist you. You can change this: to ext { |
Hi, Maybe if I just change ext { to the previous version? Can you please remind me what I should replace 'latest.integration' with? |
Hi Johnny, The simplest way is to change robobinding version to previous one(0.8.13): to ext { |
I'm on a mac |
Sorry, seems i made a mistake. It should be gradle repository instead of maven repository: C:\Users[username].gradle\caches\modules-2\files-2.1 |
ok. thanks, so , under |
Yes, delete them all. do a re-sync in Android Studio. and check the robobinding and codegen dirs. To see what version of them are downloaded. Remember you have set robobindingVersion = '0.8.14' |
I'm still getting the same error? |
ok, Let me clean project first |
Still the same?? |
Can you tell what versions of codegen and robobinding framework under the two directories? |
codegen: 0.8.13 |
what is the robobinding version? |
robobinding: 0.8.14 |
codegen should be 0.8.14 the same as robobinding. This is where the problem is. |
ok. Shall I delete codegen and resync? |
Yes, please. I have tried myself. I delete them all and resync. codegen 0.8.14 is downloaded. |
ok, I deleted all sub-dirs,resyned, but, codegen is still 0.8.13 |
That is very strange. You see in your build.gradle. You have specified - apt "org.robobinding:codegen:$robobindingVersion" If you set $robobindingVersion to 0.8.14, It should download 0.8.14 of codegen. |
And 0.8.14 codegen is published into maven central here also - http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.robobinding%22%20AND%20a%3A%22codegen%22 I tried locally without any problem. |
ok, I want to say a BIG THANK YOU, at least its working again ( if I hardcode the version) |
Ok, great. So you did this, right - "org.robobinding:codegen:0.8.14"? That is very strange. Unable to understand. |
yes, very strange?? |
I removed Google Guava dependency in new version, as it caused many issues for new users. So your build.gradle can be simplified now. To: |
ok, thanks. Can I ask you, it's still not possible to use robobinding with guava? I tried to fix the issue by adding guava (but it didn't help). |
Certainly. You can use Google Guava as you like. RoboBinding framework itself does not depend on any other libraries now. |
Johnny, can you try one thing:
Just wonder if it is somehow gradle not function properly. |
I deleted 0.8.13 subfolder and reused robobindingVersion = 'latest.integration'. it downloaded 0.8.13. or shall I delete the jar only from 0.8.13 folder? |
latest.integration means latest snapshot, which is unstable. Normally, we will not use latest.integration in real world app. Ok, let me trigger a snapshot publish. The latest.integration should refer to 0.8.15-SNAPSHOT now. |
ok, thank you again for all your help. I'm going out to grab some lunch. java.lang.ClassNotFoundException: Didn't find class "retrofit.Response" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.xxx.galaxytab4-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.xxx.galaxytab4-1, /system/lib]] |
I don't think it is related to Google Guava. Looking at the error, It is class loader was not unable to find retrofit.Response class. |
ok. thanks |
@JohnnyTwoShoes , Please close the issue if you think it is fixed. Thanks. |
Sudden I'm getting:
Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/Sets
at org.robobinding.codegen.presentationmodel.processor.PresentationModelProcessor.init(PresentationModelProcessor.java:43)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.(JavacProcessingEnvironment.java:500)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:597)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:690)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
at com.sun.tools.javac.main.Main.compile(Main.java:523)
The text was updated successfully, but these errors were encountered: