Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
eason du
@doofin
build.properties is set to 0.13.16,and sbt in terminal works ok
@pfn do you mean there is some place in intellj
to set the sbt version for intellj?
Perry
@pfn
that would be the only place to set it, in terminal
I guess newer versions of intellij have dropped 0.13 support, is this true @jastice ?
Justin Kaeser
@jastice
0.12 is dropped, 0.13 is supposed to work still
Perry
@pfn
I wonder why it doesn't work for @doofin /shrug
Justin Kaeser
@jastice
@doofin please open a ticket on https://youtrack.jetbrains.com/issues/SCL with the full sbt shell error output and maybe example project
eason du
@doofin
I use intelllij 2018.2.5 , another ide called ensime with emacs works perfectly
thetuyo
@thetuyo
Getting a "Waiting for build to finish" when trying to preview layouts. :( anyone having this issue with InteliJ 2018.2 , sbt 0.13.x ?
Perry
@pfn
no idea, I never preview layouts, doesn't work regardless of my setup (sbt or gradle or bazel, etc.)
thetuyo
@thetuyo
@pfn so how do you cut your UIs ? :(
Perry
@pfn
run the app if I need to see it
or use things like protify, etc.
thetuyo
@thetuyo
Yeah, you're brave! I have too many UI views to build I need to see them while I'm building the app.
thetuyo
@thetuyo
does anyone know which directory I should put the JNI libs in a project? I'm getting an error that the application can't find them. I put them in src/main/jniLibs
Perry
@pfn
I don't recall exactly....
src/main/jni for sources, src/main/libs for compiled libraries
thetuyo
@thetuyo
Thanks! :D that worked.
thetuyo
@thetuyo
Also has anyone figured out how to debug? if i run android:debug ... my device keeps "Waiting for Debugger" and it never starts. Any ideas please ?
I also can't seem to create a configuration
Perry
@pfn
if you android:debug, you need to attach the debugger
the app waits until the debugger is attached before it will launch
that's how you debug launch crashes
use the "attach debugger" command in intellij to debug
thetuyo
@thetuyo
@pfn thanks!
Perry
@pfn
I usually shortcut it to a keystroke
thetuyo
@thetuyo
Hi, has anyone tried to add local AAR files to a project? I put it in ./src/main/libs and ./libs no luck ?
thetuyo
@thetuyo
Also tried ./aars no luck
thetuyo
@thetuyo
I've also tried ./libs/aars/myfile.aar and ./src/main/libs/aars/myfile.aar :( ... anyone ?
Perry
@pfn
@thetuyo if you want local aars, you need to do localAARs += file(...)
eason du
@doofin
Hi , I find that a simple activity written in Scala is much more slow to start , what 's the possible reason?
the project is like this https://github.com/doofin/scala4Android
BTW,I feel using sbt and Scala is much pleasant than kotlin and gradle!
Perry
@pfn
@doofin perhaps try using plain xml instead of scaloid?
eason du
@doofin
thanks,would have a try with plain android api .
For my understanding,there should be no extra runtime cost for scala,which makes this slowdown really confusing
Perry
@pfn
there's no extra runtime cost, but scaloid is a complex library @doofin
it is a relatively large level of abstraction
so there is a runtime loading cost of the scala stdlib, plus scaloid
something like macroid or iota should be more efficient
Yuri Setiantoko
@zerosign
hi all, just want to know whether current sbt-android already support sbt 1.x or not ? since the last updates of it activities are https://github.com/scala-android/sbt-android/pull/329/files ?
Perry
@pfn
@zerosign no support for 1.x at present
Yuri Setiantoko
@zerosign
is it related to sbt support itself or also related to scala version?
Perry
@pfn
@zerosign just sbt support
Adriano Locaretti
@locaretti_twitter
Hi there! I'm trying to run an application in Scala- android , i'm currently trying to compile it using intellij, but i'm facing this errors on compile time :
Error:scalac: Error: Could not find an output directory for /<user_dir>/.IntelliJIdea2018.3/system/compile-server/shyappandroid_528b2823/targets/java-production/shyappandroid_520fdcf2/android/copied_sources/com/example/TR.scala in List((/<user_dir>/workspace/ShyAppAndroid/target/android/generated/source,/<user_dir>/workspace/ShyAppAndroid/target/scala-2.11/classes), (/<user_dir>/workspace/ShyAppAndroid/src/main/scala,/<user_dir>/workspace/ShyAppAndroid/target/scala-2.11/classes))
scala.reflect.internal.FatalError: Could not find an output directory for /<user_dir>/.IntelliJIdea2018.3/system/compile-server/shyappandroid_528b2823/targets/java-production/shyappandroid_520fdcf2/android/copied_sources/com/example/TR.scala in List((/<user_dir>/workspace/ShyAppAndroid/target/android/generated/source,/<user_dir>/workspace/ShyAppAndroid/target/scala-2.11/classes), (/<user_dir>/workspace/ShyAppAndroid/src/main/scala,/<user_dir>/workspace/ShyAppAndroid/target/scala-2.11/classes))
at scala.tools.nsc.settings.MutableSettings$OutputDirs.outputDirFor(MutableSettings.scala:311)
at scala.tools.nsc.backend.jvm.BytecodeWriters$class.outputDirectory(BytecodeWriters.scala:26)
at scala.tools.nsc.backend.jvm.GenASM.outputDirectory(GenASM.scala:24)
at scala.tools.nsc.backend.jvm.BytecodeWriters$class.getFile(BytecodeWriters.scala:41)
at scala.tools.nsc.backend.jvm.GenASM.getFile(GenASM.scala:24)
at scala.tools.nsc.backend.jvm.GenASM$JBuilder.writeIfNotTooBig(GenASM.scala:528)
at scala.tools.nsc.backend.jvm.GenASM$JMirrorBuilder.genMirrorClass(GenASM.scala:2844)
at scala.tools.nsc.backend.jvm.GenASM$AsmPhase.emitFor$1(GenASM.scala:194)
at scala.tools.nsc.backend.jvm.GenASM$AsmPhase.run(GenASM.scala:204)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1528)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1513)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1508)
at scala.tools.nsc.Global$Run.compile(Global.scala:1609)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:130)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:105)
at xsbt.CompilerInterface.run(CompilerInterface.scala:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sbt.internal.inc.AnalyzingCompiler.call(AnalyzingCompiler.scala:237)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:111)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:90)
at org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:40)
at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:35)
at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:83)
at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:26)
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)
Perry
@pfn
does it work fine from sbt?
Adriano Locaretti
@locaretti_twitter
on sbt with "android:run" command i'm facing the "[error] no devices connected
[error] (android:hasAndroidDevice) no devices connected" as i cannot debug it without using my phone connected with usb cable
Perry
@pfn
sbt android:package