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

Android Studio always tried to import kotlin.Result #120

Open
alexzaitsev opened this issue Nov 3, 2022 · 3 comments
Open

Android Studio always tried to import kotlin.Result #120

alexzaitsev opened this issue Nov 3, 2022 · 3 comments

Comments

@alexzaitsev
Copy link

This is more a question.
Probably somebody figured out how to tell to Android Studio that I'm using com.github.kittinunf.result.Result instead of the default one.
There is no issue if I'm typing Result symbol by symbol - then I can just choose appropriate import.
However, if I insert code from browser or other place (not AS), then AS always uses default Result.
Is there a way to substitute it for all the cases by com.github.kittinunf.result.Result?

@kittinunf
Copy link
Owner

I am not really what the best way to approach this but do you think we can add the kotlin.Result from the auto-import?

Editor > General > Auto Import > Exclude from auto-import and completion:

@alexzaitsev
Copy link
Author

alexzaitsev commented Nov 24, 2022

@kittinunf doesn't help unfortunately.
Screenshot 2022-11-24 at 12 16 39
Screenshot 2022-11-24 at 12 18 20

@kittinunf
Copy link
Owner

I guess you gotta manually import it for now. 😓. Sorry for inconveniences.

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