scala-android / scala-android.github.io

10 stars 10 forks source link

Warn people trying to import the gradle project #26

Open vvasuki opened 7 years ago

vvasuki commented 7 years ago

The problems I ran into when importing a gradle project are encapsulated in this snippet:

Vishvas Vasuki @vvasuki 16:52 Hello! I started developing a java android app ( https://github.com/sanskrit-coders/subhAShita-pratimAlA ) , but decided to switch to scala . I followed the instructions (https://github.com/scala-android/sbt-android/blob/master/GRADLE.md / http://scala-android.org/setup/ ) and successfully imported it to sbt. I was able to run the skeleton app on my phone using the command line interface. But I wanted to use an IDE. So I started following http://scala-on-android.taig.io/introduction/ and http://scala-android.org/ide_integration/ . But, when I click run, I get the following question : http://pastebin.com/rWQHGzzA . Any tips on how I should proceed?

Perry @pfn 16:58 q, but what version of intellij is this? don't run from intellij, I guess

Vishvas Vasuki @vvasuki 17:00 IntelliJ IDEA 2016.3.1 Build #IC-163.9166.29, built on December 9, 2016 JRE: 1.8.0_112-release-408-b2 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o (This is the version I am stuck with for about a week before I get my own computer) you suggest that I just use intellij to edit while using the command line to run?

Perry @pfn 17:01 or you can download the sbt plugin to have an sbt tool window built in sbt support is still a little weird

Vishvas Vasuki @vvasuki 18:07 In the IDE, i am unable to create scala classes at all - intellij seems to assume that this is a java project. How would I fix this?

Perry @pfn 18:28 ? open the project from intellij and it's automatically a scala android project.... add the scala facet otherwise

Vishvas Vasuki @vvasuki 19:40 I abandoned the gradle import attempt - just following hte instructions https://github.com/scala-android/sbt-android for making a project from scratch worked well

Perry @pfn 19:41 oh, I missed that you mentioned gradle import yeah, intellij will force it to be a gradle. project, which is dumb

It would be good to warn users and help them avoid wasted hours...

charafau commented 7 years ago

Thank you for creating an issue about this. I will try to create videos for both sbt project import and with gradle plugin usage (there's no mention about sbt gradle plugin importer on website).

If you have any futher ideas, or PRs you're really welcomed 👍 😄