It works, thank you! Really SDK was incorrect (pure Java instead Android SDK)
On Fri, Nov 7, 2014 at 8:20 PM, Daniel Skinner <[email protected]> wrote: > So I actually tried gen-android last night to play with a new project > using ndk and opened in intellij 14 and saw this same behavior. > Specifically, project settings had the wrong sdk set. > > If you open `File -> Project Structure` and under `Project Settings -> > Project` on the left, set `Project SDK` to your android target. If you do > not have one, you need to set that up in intellij regardless of which > method you use. I'd also recommend setting `Project Language Level` to 6 > though in the general case you can get away with 7 ok. > > Accept the change and then everything should be ok. > > On Thu, Nov 6, 2014 at 10:10 AM, Daniel Skinner <[email protected]> wrote: > >> android sdk setup in intellij settings? Look at sdk area of ide settings, >> look at project settings for errors (both accessible from the File menu). >> >> On Thu, Nov 6, 2014 at 1:13 AM, Igor Tseglevskiy < >> [email protected]> wrote: >> >>> Yes, SBT project was imported well, but android classes are not resolved. >>> >>> >>> https://www.dropbox.com/s/xnzqbkw656ond12/Screen%20Shot%202014-11-06%20at%2010.06.53.png?dl=0 >>> >>> Any ideas? >>> >>> On 11/5/14, Daniel Skinner <[email protected]> wrote: >>> > Well, first, I'd recommend upgrading intellij since v14 was just >>> released. >>> > >>> > https://www.jetbrains.com/idea/ >>> > >>> > This version actually comes with support for pfn's android-sdk plugin. >>> > You'll still want to keep the sbt plugin around until the official sbt >>> > support can execute sbt tasks. Remove the old idea folders and any iml >>> > files and then open either your sbt file, or if you only have the >>> > project/build.scala file, then import the root folder as a project and >>> > select the Scala project layout and intellij will work out the rest so >>> your >>> > activity subclass doesn't have all those red squiggles. >>> > >>> > On Wed, Nov 5, 2014 at 3:40 AM, Igor Tseglevskiy >>> > <[email protected] >>> >> wrote: >>> > >>> >> Ok, I've pointed to sbt-launch.jar in preferences of SBT plugin to the >>> >> installed 0.13.6. Now SBT console works. Where is the default for SBT >>> >> in IntelliJ?? >>> >> >>> >> So, SBT console works, and I can run android:packageDebug and >>> >> android:run. >>> >> >>> >> I have next trouble. "Edit configuration" tells me that my activity in >>> >> Scala is not an Activity subclass or alias. >>> >> >>> >> >>> >> >>> >> On 11/5/14, Vyacheslav Blinov <[email protected]> wrote: >>> >> > What sbt version are you running? Try to run it with sbt 0.13.5 >>> >> > >>> >> >> On 05 Nov 2014, at 11:56, Igor Tseglevskiy >>> >> >> <[email protected]> >>> >> >> wrote: >>> >> >> >>> >> >> I've experimented a little. In pure SBT project the SBT console >>> works >>> >> >> fine. But inside the Android project - doesn't. >>> >> >> >>> >> >> java -Dsbt.log.noformat=true >>> >> >> -Djline.terminal=jline.UnsupportedTerminal -Xmx512M >>> >> >> -XX:MaxPermSize=256M -jar >>> >> >> /Users/tsypa/Library/Caches/IdeaIC13/sbt/sbt-launch.jar >>> >> >> >>> >> >> [info] Loading project definition from >>> /Users/tsypa/scala/SCT8/project >>> >> >> [error] java.lang.NoClassDefFoundError: sbt/Plugins >>> >> >> [error] Use 'last' for the full log. >>> >> >> Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? >>> >> >> >>> >> >> In the project directory I have: >>> >> >> >>> >> >> maaaacy:project $ cat plugins.sbt >>> >> >> addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.3.6") >>> >> >> >>> >> >> maaaacy:project $ cat build.scala >>> >> >> object Build extends android.AutoBuild >>> >> >> maaaacy:project $ >>> >> >> >>> >> >> Any ideas? >>> >> >> >>> >> >> On 11/5/14, Igor Tseglevskiy <[email protected]> wrote: >>> >> >>> SBT works from command line, but doesn't from inside the IDE. >>> There >>> >> >>> is >>> >> >>> the same message when I write any command in SBT console and when >>> I >>> >> >>> add SBT task to the Run configuration. >>> >> >>> >>> >> >>> What's wrong? >>> >> >>> >>> >> >>> [info] Resolving org.fusesource.jansi#jansi;1.4 ... >>> >> >>> [info] Done updating. >>> >> >>> [error] java.lang.NoClassDefFoundError: sbt/Plugins >>> >> >>> [error] Use 'last' for the full log. >>> >> >>> Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? >>> >> >>> >>> >> >>> On 11/4/14, Nick Stanchenko <[email protected]> wrote: >>> >> >>>> Hi, >>> >> >>>> >>> >> >>>> The trick is to let IDEA build with sbt. I have a small guide >>> >> >>>> here: http://macroid.github.io/ScalaOnAndroid.html >>> >> >>>> >>> >> >>>> Nick >>> >> >>>> >>> >> >>>> On Tuesday, November 4, 2014 10:18:35 AM UTC, Igor Tseglevskiy >>> >> >>>> wrote: >>> >> >>>>> >>> >> >>>>> Folks, hello! >>> >> >>>>> >>> >> >>>>> I'm developing for Android a few years, but I'm newbie in Scala. >>> >> >>>>> I'd >>> >> >>>>> like >>> >> >>>>> >>> >> >>>>> to use Scala in Android projects. >>> >> >>>>> >>> >> >>>>> I discovered two methods how to use Scala classes in Android >>> >> projects. >>> >> >>>>> First - with IDE, but without SBT - >>> >> >>>>> >>> >> http://stackoverflow.com/questions/23696560/android-scala-intellij-13 >>> >> >>>>> Second - with SBT, but without IDE - >>> >> >>>>> https://github.com/pfn/android-sdk-plugin >>> >> >>>>> >>> >> >>>>> I like the android-sdk-plugin, but I can not integrate it to >>> >> IntelliJ. >>> >> >>>>> I >>> >> >>>>> tried to use plugin sbt-idea, but the IntelliJ can not build >>> >> >>>>> modified >>> >> >>>>> project. It's possible that I do something wrong. >>> >> >>>>> >>> >> >>>>> Is there tested fresh howto about android-sdk-plugin and >>> IntelliJ >>> >> >>>>> 13? >>> >> >>>>> >>> >> >>>>> >>> >> >>>> >>> >> >>>> -- >>> >> >>>> You received this message because you are subscribed to a topic >>> in >>> >> >>>> the >>> >> >>>> Google Groups "scala-on-android" group. >>> >> >>>> To unsubscribe from this topic, visit >>> >> >>>> >>> >> >>> https://groups.google.com/d/topic/scala-on-android/QUAbfunp_P0/unsubscribe >>> >> . >>> >> >>>> To unsubscribe from this group and all its topics, send an email >>> to >>> >> >>>> [email protected]. >>> >> >>>> For more options, visit https://groups.google.com/d/optout. >>> >> >>>> >>> >> >>> >>> >> >> >>> >> >> -- >>> >> >> You received this message because you are subscribed to the Google >>> >> Groups >>> >> >> "scala-on-android" group. >>> >> >> To unsubscribe from this group and stop receiving emails from it, >>> send >>> >> an >>> >> >> email to [email protected]. >>> >> >> For more options, visit https://groups.google.com/d/optout. >>> >> > >>> >> > Regards, >>> >> > Vyacheslav Blinov >>> >> > https://github.com/dant3 >>> >> > >>> >> > -- >>> >> > You received this message because you are subscribed to a topic in >>> the >>> >> > Google Groups "scala-on-android" group. >>> >> > To unsubscribe from this topic, visit >>> >> > >>> >> >>> https://groups.google.com/d/topic/scala-on-android/QUAbfunp_P0/unsubscribe >>> >> . >>> >> > To unsubscribe from this group and all its topics, send an email to >>> >> > [email protected]. >>> >> > For more options, visit https://groups.google.com/d/optout. >>> >> > >>> >> >>> >> -- >>> >> You received this message because you are subscribed to the Google >>> Groups >>> >> "scala-on-android" group. >>> >> To unsubscribe from this group and stop receiving emails from it, >>> send an >>> >> email to [email protected]. >>> >> For more options, visit https://groups.google.com/d/optout. >>> >> >>> > >>> > -- >>> > You received this message because you are subscribed to a topic in the >>> > Google Groups "scala-on-android" group. >>> > To unsubscribe from this topic, visit >>> > >>> https://groups.google.com/d/topic/scala-on-android/QUAbfunp_P0/unsubscribe >>> . >>> > To unsubscribe from this group and all its topics, send an email to >>> > [email protected]. >>> > For more options, visit https://groups.google.com/d/optout. >>> > >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "scala-on-android" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "scala-on-android" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/scala-on-android/QUAbfunp_P0/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "scala-on-android" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
