How to build the native Android sources from Codename One's build server

Derek Johnson

I'm using the new gradle build switch when sending an Android build for Codename One. One of the highlighted benefits of building with gradle is the ability to open/run in Android Studio and indeed the project opens for me but I'm getting the following error:

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

  • Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
  • The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)
  • Your project may be using a third-party plugin which is not compatible with the 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, the IDE and did quite a few things with no real success.

David Cohen

I had the exact same issue and corresponded with Codename One support a while back and it turns out the solution is rather simple:

Define your own installation of gradle as the one to use, this is what Chen from CodenameOne sent to me as a reference:

screenshot from Chen

I installed gradle 2.8 and configured it as such in the settings and that almost worked. I also had to follow the instructions of Android Studio - supplied javaHome is not a valid folder & even After update of AS to 1.0, getting "method ID not in [0, 0xffff]: 65536" error in project despite the fact that multi-sex was not necessary in the server?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How does one build android kernel from sources on Ubuntu 13.04

From Dev

How does one build android kernel from sources on Ubuntu 13.04

From Dev

Codename One: Android release build

From Dev

Cannot build Android in codename one

From Dev

Codename one Dex issue while android build?

From Dev

Codename One: How to build Topbar background

From Dev

How to access Codename one Preferences from Android Native code?

From Dev

Getting error when sending application to codename one build server

From Dev

Codename One Send Build Error

From Dev

How to build scene builder from openjfx sources

From Dev

How to invoke an Android Intent that expects a result from Codename One Native Code

From Dev

how to access files in default package from native android code (Codename One)

From Dev

How to build android apk from my react-native project?

From Dev

Codename One - Build Canceled By User on BLE example

From Dev

Codename one Send IOS app store build

From Dev

Codename One - iOS build error at export step

From Dev

How to test an Android native code snippet with Codename One?

From Dev

Android: How to build since date from server date

From Dev

How to change VIMRUNTIME directory after build from sources

From Dev

How to build all my installed package from sources?

From Dev

How to build react native android app for production?

From Dev

Codename One: Invoke codename code from native interface

From Dev

Distinguish an apk build with Cordova/Phonegap from a native one

From Dev

Attempt to build Qt from sources leads to error

From Dev

Attempt to build Qt from sources leads to error

From Dev

How to build .exe from TeamCity Server

From Dev

Import/Export TeamCity build configuration from one server to another

From Dev

Import/Export TeamCity build configuration from one server to another

From Dev

Error to build native library from Android studio 6.1

Related Related

  1. 1

    How does one build android kernel from sources on Ubuntu 13.04

  2. 2

    How does one build android kernel from sources on Ubuntu 13.04

  3. 3

    Codename One: Android release build

  4. 4

    Cannot build Android in codename one

  5. 5

    Codename one Dex issue while android build?

  6. 6

    Codename One: How to build Topbar background

  7. 7

    How to access Codename one Preferences from Android Native code?

  8. 8

    Getting error when sending application to codename one build server

  9. 9

    Codename One Send Build Error

  10. 10

    How to build scene builder from openjfx sources

  11. 11

    How to invoke an Android Intent that expects a result from Codename One Native Code

  12. 12

    how to access files in default package from native android code (Codename One)

  13. 13

    How to build android apk from my react-native project?

  14. 14

    Codename One - Build Canceled By User on BLE example

  15. 15

    Codename one Send IOS app store build

  16. 16

    Codename One - iOS build error at export step

  17. 17

    How to test an Android native code snippet with Codename One?

  18. 18

    Android: How to build since date from server date

  19. 19

    How to change VIMRUNTIME directory after build from sources

  20. 20

    How to build all my installed package from sources?

  21. 21

    How to build react native android app for production?

  22. 22

    Codename One: Invoke codename code from native interface

  23. 23

    Distinguish an apk build with Cordova/Phonegap from a native one

  24. 24

    Attempt to build Qt from sources leads to error

  25. 25

    Attempt to build Qt from sources leads to error

  26. 26

    How to build .exe from TeamCity Server

  27. 27

    Import/Export TeamCity build configuration from one server to another

  28. 28

    Import/Export TeamCity build configuration from one server to another

  29. 29

    Error to build native library from Android studio 6.1

HotTag

Archive