本文介绍了是否可以在 Android Studio 中使用 crosswalk-cordova?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 android studio 中构建一个 crosswalk-cordova 应用程序?

Is it possible to build a crosswalk-cordova app inside of android studio?

现在看来您需要使用 ANT.

It looks like you need to use ANT at this point.

有谁知道这是否在路线图上,因为 android studio 已经出测试版了?

Does anyone know if this is on the roadmap now that android studio is out of beta?

我们的团队刚刚构建了一个 androidwear 应用,所以我们需要使用 android studio 创建一个构建,我们想开始使用 crosswalk.

Our team just built an android wear app so we need to use android studio to create a build and we'd like to start using crosswalk.

推荐答案

我在这里整理了一些说明:https://diego.org/2015/01/07/embedding-crosswalk-in-android-studio/

I put together some instructions here: https://diego.org/2015/01/07/embedding-crosswalk-in-android-studio/

您可以通过添加 maven repo 使用 gradle 来做到这一点:

You can do this with gradle by adding the maven repo:

repositories {
    maven {
        url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
    }
}

然后是您想要的人行横道版本:

And then the version of crosswalk that you want:

compile 'org.xwalk:xwalk_core_library:10.39.235.15'

示例代码:https://github.com/dougdiego/CrosswalkDemo

这篇关于是否可以在 Android Studio 中使用 crosswalk-cordova?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 09:27