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 when upgrading to Kotlin 1.0.0-beta-1103 #5

Closed
lkogler opened this issue Nov 13, 2015 · 2 comments
Closed

Error when upgrading to Kotlin 1.0.0-beta-1103 #5

lkogler opened this issue Nov 13, 2015 · 2 comments

Comments

@lkogler
Copy link

lkogler commented Nov 13, 2015

Hi! I found this project very helpful to see how to set up kotlin with dagger! But when I tried to use the same method in my app, it didn't work. I realized that it is because I was using a newer version of Kotlin (version 1.0.0-beta-1103).

If you try updating the Kotlin version in this repo, you will get an error like this:
java.lang.NoSuchMethodError: No virtual method provideLocationManager$app_compileDebugKotlin()Landroid/location/LocationManager; in class Lorg/loop/example/AndroidModule;

Unfortunately, I don't know any solution for this problem. Do you have any ideas?

@damianpetla
Copy link
Owner

@lkogler I have upgraded project to Kotlin Beta and fixed AndroidModule class. When I was moving before module from Java to Kotlin, all functions got internal modifier which I missed. Removing internal fixed the problem

@lkogler
Copy link
Author

lkogler commented Nov 16, 2015

Ah, great, thanks!

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

2 participants