Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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
Adriano Locaretti
@locaretti_twitter
Oh yeah, nice, thanks!It does compile and packages it into an .apk.I ashume i then transfer it on phone and run it there?
*assume
Perry
@pfn
yes, you can do that
but it should work from intellij as well...
I don't know why it's complaining about <user_dir> and why it can't populate it
unless you're redacting it
Adriano Locaretti
@locaretti_twitter
The android:package solution is an acceptable solution for the time being!But i'll try to find the root cause of the above error (maybe deleting /.idea/ folder contents and restaring intallij will do the trick).Anyway i'll update with any findings!Thanks again for your valuable help!
Viacheslav Blinov
@dant3
it's been a long time. And it seems gitter didn't got better at all :)
@pfn you was looking for an svg logo?
Perry
@pfn
@dant3 an svg logo? I haven't been working on this for a while, I don't remember what I was looking for :D
BaghdadKh
@BaghdadKh
Hi , Does Scala 2.13.0-M5 support android ? or any version of 2.13
Perry
@pfn
@BaghdadKh nope
Bang Bro
@Human89_gitlab
Hello
Rafal Wachol
@charafau
omg this channel is still alive :D
Nikolas Pafitis
@n-pafitis
Hey guys, I know that this question has been asked a lot and it probably annoys you by now, but i want to hear your opinions about it. How's scala on android compared to something like Kotlin in terms of performance and deployability( i don't really care about compile times).
Perry
@pfn
kotlin at the moment is much better supported
@n-pafitis
azfar
@azfar75_twitter
I cannot get the properties to show up in android studio
what to do?
Perry
@pfn
what properties
Sushrita
@sushrita
CAn anyone help me how to make horizontal recyclerview flip paging lik e instagram videos right flip?