[英]How to add Crosswalk project to Android studio?
I am trying out android crosswalk project. 我正在尝试android人行横道项目。 I am having problems adding crosswalk webview to andriod studio though. 我在将人行横道webview添加到andriod studio时遇到了问题。 I am not sure where I am going wrong nor do I understand most terminology yet. 我不确定哪里出了问题,也不确定大多数术语。
I read https://crosswalk-project.org/documentation/embedding_crosswalk.html but I refers to https://developer.android.com/tools/sdk/eclipse-adt.html which is no longer supported. 我阅读了https://crosswalk-project.org/documentation/embedding_crosswalk.html,但我指的是不再受支持的https://developer.android.com/tools/sdk/eclipse-adt.html 。 This seems to be outdated but I tried anyway with Android Studio 1.2.2. 这似乎已经过时了,但是我还是尝试使用Android Studio 1.2.2。
I tried making a project with https://crosswalk-project.org/documentation/downloads.html Android webview (ARM) 13.42.319.11 as told in the documention. 如文档中所述,我尝试使用https://crosswalk-project.org/documentation/downloads.html Android webview(ARM)13.42.319.11制作项目。 I am not sure what is meant with 'open ADT' but I assumed Android Studio instead of the plugin of eclipse. 我不确定“ open ADT”是什么意思,但是我假设使用Android Studio而不是eclipse插件。 I opened from an 'existing android studio project' (the download unzipped). 我从“现有的android studio项目”打开(下载文件未压缩)。 But didn't come across the option 'set root directory'. 但是没有遇到“设置根目录”选项。
I then tried to create a new android studio project and ran it. 然后,我尝试创建一个新的android studio项目并运行它。 It showed the basic hello wold example on my phone. 它显示了我手机上的基本hello wold示例。 Then I followed the remaining steps by pasting in the code they provided. 然后,按照剩余的步骤粘贴它们提供的代码。 I ran it again and got 3 errors: 我再次运行它,发现了3个错误:
Error:(3, 22) error: package org.xwalk.core does not exist
Error:(9, 13) error: cannot find symbol class XWalkView
Error:(15, 23) error: cannot find symbol class XWalkView
I am not sure what to do from here as this is all very new to me. 我不确定从这里开始该怎么做,因为这对我来说还是很新的。
Basically I am trying to run there example but can't figure out why the import isn't working. 基本上,我试图在该示例中运行,但无法弄清楚为什么导入不起作用。
Updated Links 19-07-2016 更新的链接19-07-2016
maven {
url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
}
And In dependencies add this 在依赖项中添加此
compile 'org.xwalk:xwalk_core_library_beta:9.38.208.8'
我遇到了同样的问题,但最终通过将xwalk_core_library.jar以及arm64-v8a和x86_64子文件夹放置在libs文件夹中来解决了这个问题,并且我从依赖项中删除了编译“ org.xwalk:xwalk_core_library:xxxx”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.