简体   繁体   English

IBM Worklight 6.1.0.0:Android环境缺少某些文件

[英]IBM Worklight 6.1.0.0: Android environment missing some files

Steps: 脚步:

  1. Create a sample application "SampleApp" and add "android" environment to it. 创建一个示例应用程序“ SampleApp”,并向其中添加“ android”环境。
  2. Delete the "native" folder from the android environment. 从android环境中删除“本地”文件夹。 eg SampleApp/android/native 例如SampleApp / android / native
  3. Right click on "android" folder and do - Run As -> Build Android Environment 右键单击“ android”文件夹并执行-运行方式->构建Android环境

Observe: 观察:

Following files are missing from the "native/libs" folder “ native / libs”文件夹中缺少以下文件

  1. android-async-http.jar android-async-http.jar
  2. guava.jar 番石榴

I didn't found any other way to include these files. 我没有找到其他方法来包含这些文件。 On actual android device (Samsung Tab 3), "guava.jar" file is needed to initialize JSONStore object. 在实际的android设备上(三星标签3),需要“ guava.jar”文件来初始化JSONStore对象。

Update April 2nd, 2014: From the comments to this answer: 2014年4月2日更新:从评论到此答案:

I have upgraded to Worklight 6.1.0.1. 我已经升级到Worklight 6.1.0.1。 Now the issue is reproducible in following scenario - 1. Instead of "native" folder, just delete these 2 files (android-async-http.jar, guava.jar) 2. rebuild the android environment. 现在,此问题在以下情况下可以重现-1.代替“本地”文件夹,只需删除这2个文件(android-async-http.jar,guava.jar)。2.重建android环境。

This is OK. 还行吧。 The native folder is considered the user's domain. 本机文件夹被视为用户的域。 That means that if a user decides to remove parts of it - for example .jars from the lib\\ folder, to maybe... reduce the app's filesize? 这意味着如果用户决定删除其中的部分内容(例如,从lib \\文件夹中删除.jars),也许...减小应用程序的文件大小? that's okay. 没关系。 It is the user's responsibility. 这是用户的责任。


I have tested this in Worklight 6.1.0.1; 我已经在Worklight 6.1.0.1中对此进行了测试; created a new project and application, added the Android environment, Run As > Run on Worklight Development Server. 创建了一个新项目和应用程序,添加了Android环境,运行方式>在Worklight Development Server上运行。

The supposed missing files are in my android\\native\\libs folder: 假定的丢失文件在我的android \\ native \\ libs文件夹中:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IBM Worklight 6.1-尝试构建Android环境时出现“缺少.project文件”错误 - IBM Worklight 6.1 - “Missing .project file” error while trying to build the Android environment IBM Worklight 5.0.6 - 如何在Android环境中添加启动画面? - IBM Worklight 5.0.6 - How to add a splash screen to Android environment? IBM Worklight 6.0 - 无法在avd上使用dojo toolkit for android环境运行示例混合工作灯应用程序? - IBM Worklight 6.0 - Unable to run sample hybrid worklight app using dojo toolkit for android environment on avd? IBM Worklight - 在Android中使用SQLite? - IBM Worklight - Using SQLite in Android? IBM Worklight-Android上的推送通知 - IBM Worklight - Push notification on Android 添加新环境时,IBM Worklight Android的复选框始终处于禁用状态 - IBM Worklight Android's checkbox always disabled while adding new environment IBM Worklight-Android应用程序崩溃 - IBM Worklight - Android app crashes IBM Worklight - 如何使Android环境代码与生成的项目“独立”? - IBM Worklight - How to make Android environment code “independent” from the generated project? IBM Worklight 6.0-无法通过Android设备访问Worklight Server - IBM Worklight 6.0 - Unable to access Worklight Server through Android device IBM Worklight使用多个HTML文件 - IBM Worklight Using Multiple HTML Files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM