How to create native Android sources from Codename One build server

I use the new gradle build mechanism when submitting an Android build for Codename One. One of the main advantages of building with gradle is the ability to open / run in Android Studio, and indeed, the project opens for me, but I get the following error:

Error: Unable to load class 'org.codehaus.groovy.runtime.StringGroovyMethods'. Possible causes of this unexpected error include:

  • The gradle dependency cache can be (this sometimes happens after a network connection timeout.) Re-load the dependencies and synchronization project (network required)
  • The state of the gradle build process (daemon) may be corrupt. Stopping all gradle daemons can solve this problem. Stop gradle build processes (reboot required)
  • Your project may have a third-party plugin that is incompatible with other plugins in the project or the version of gradle requested by the project.
In the case of corrupt gradle processes, you can also try closing the IDE and then killing all Java processes.

I restarted the process, IDE and did a lot of things without real success.

+4
source share
1 answer

I had the same problem, and I supported Codename One support some time ago, and it turned out that the solution is pretty simple:

gradle , CodenameOne :

screenshot from Chen

gradle 2.8 . Android Studio - javaHome AS 1.0, [0, 0xffff]: 65536 " , , ?

+4

Source: https://habr.com/ru/post/1621392/


All Articles