Basically, I need to run Groovy Scripts to manage Java objects, and GroovyShell / GroovyScriptEngine is the best way to do this. Can I embed Groovy in a Java application? I tried putting groovy -all-1.8.2.jar in the Android Java App files folder, referencing it and then compiling, but I have a bunch of errors.
How to do it?
I do not believe that this will work. Groovy converts scripts to bytecode, and since the Dalvik bytecode is different from the Java bytecode expected by Groovy, I think it will have problems ...
Discobot , , , .
...
: http://skillsmatter.com/podcast/home/groovy-android/
. http://melix.imtqy.com/blog/2014/06/grooid.html.
http://glaforge.appspot.com/article/groovy-2-3-3-and-groovy-2-4-beta-1-with-android-support !
09/2011 Discobot, , . : , .
Groovy 2.0 , () , - - @CompileStatic Groovy 2.0. Groovy 2.0.1... 2.0.4, , .
, Groovy, Android , , , (. wiki wiki).
, . https://github.com/melix/grooidshell-example
, Android, dex, , .
The best choice for running scripts on Android is SnapScript . It does not rely on Bytecode and is fully supported on Android.