如何建立从$原生的Andr​​oid源C $ CNAME One的构建服务器 [英] How to build the native Android sources from Codename One's build server

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

问题描述

我使用的是新的为codeNAME一个发送Android编译时建立开关。其中与建筑的gradle的突出优点就是打开Android Studio中运行的能力/的确该项目为我打开,但我得到了以下错误:

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:

错误:无法加载类
  组织。codehaus.groovy.runtime.StringGroovyMethods。可能的原因
  这个意外的错误包括:

  • 摇篮的依赖缓存可能
      腐败(这是一个网络连接超时后,有时会出现。)重新下载的依赖和同步工程(需要
      网)
  • 一个摇篮建设进程(守护进程)的状态可能
      损坏。停止所有摇篮守护进程可能会解决这个问题。停止摇篮构建过程(需要
      重启)
  • 您的项目可能会使用第三方插件
      这是不符合的项目或其他兼容的插件
      摇篮的版本所要求的项目。
  • 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.

    我重新启动的过程中,IDE,做了不少事情,没有真正的成功。

    I restarted the process, the IDE and did quite a few things with no real success.

    推荐答案

    我有相同的问题,并与codeNAME对应一个支持而回,它原来的解决方案是非常简单的:

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

    定义你自己的gradle安装为一个使用的,这是陈从codenameOne送给我作为一个参考:

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

    从陈截图

    我的gradle安装2.8,并在设置中配置它是这样,而且几乎工作。我也只好跟着的<一个指令href=\"http://stackoverflow.com/questions/22749200/android-studio-supplied-javahome-is-not-a-valid-folder\">Android工作室 - 提供JAVAHOME是不是一个有效的文件夹&安培;甚至<一个href=\"http://stackoverflow.com/questions/27377080/after-update-of-as-to-1-0-getting-method-id-not-in-0-0xffff-65536-error-i\">After AS 1.0的更新,越来越&QUOT;不能在[0,0xFFFF的]方法ID:65536&QUOT;错误项目尽管多性别的服务器是不是必要的?

    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?

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

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