如何从 Codename One 的构建服务器构建原生 Android 源代码 [英] How to build the native Android sources from Codename One's build server

查看:42
本文介绍了如何从 Codename One 的构建服务器构建原生 Android 源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用新的

我安装了 gradle 2.8 并在设置中如此配置它,几乎可以正常工作.我还必须按照 Android Studio 的说明进行操作 - 提供的 javaHome 是不是有效的文件夹 &甚至 AS 更新到 1.0 后,得到方法 ID 不在 [0, 0xffff]: 65536";尽管服务器中不需要多性别,但项目中的错误?

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.

解决方案

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:

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?

这篇关于如何从 Codename One 的构建服务器构建原生 Android 源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆