r/Hyperskill • u/chema131 • Apr 06 '21
Kotlin β "Solve in IDE" button doesn't work for Android Studio, fails to load Task.kt from course
Hi everyone, I just want to found a workaround to continue my student path. I opened the new project Tip Calculator and I wanted to do my daily challenge code problem, but I couldn't do it because it requires Android Studio. When I opened, installed edutool plugin, and try to open the "Solve in Ide" it didn't open the task. Did anyone found a workaround for this? Thanks community

EDIT: Got a workaround
Go to Project View - Select the folder with the new task/code challenge - Add a new folder called src -> Right Click and select "Source Root" -> Right-click again over the folder src and select New > Directory and select "main/kotlin"
With this, I was able to run and debug the task as well as Check the exercise in the task tab.
Hope to be helpful to someone else.

1
u/msmilkshake Java Apr 06 '21 edited Apr 06 '21
Do you have the EduTools plug-in installed in Android Studio?
Edit: Yes you do. I hadn't seen the Screenshot earlier. 🤦♂️
1
u/PhenixFine Kotlin β Apr 07 '21
That's a command line challenge so it's weird that it's forcing you to open it in android studio that wasn't really meant to run those ( it can be done. I had a class that showed how to do it, but the teacher's implementation was so buggy that I just used IntelliJ IDE instead ). I personally always opt to paste my code in the Code Editor on the website unless they have the option disabled, as I've had too many problems with the Solve in IDE option ( I just have a project I created myself that I test code challenges on. I do the same for projects when they don't have the code editor disabled ).
1
u/Natalia_Feofanova Apr 06 '21
Hi! This appears to be a known issue and it's currently under investigation:
https://youtrack.jetbrains.com/issue/EDU-4194.