且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IBM工作灯6.0 - 无法使用Dojo工具包对AVD Android的环境下运行样品混合工作灯应用程序?

更新时间:2023-01-26 08:39:15

让我们的备份只是有点。 在关于控制台视图nsand的帖子,如果你的应用程序正在使用的是在6.0中引入的新道场库服务器什么他试图确定的。总之,对于6.0,您的应用程序只有在它道场移动图层。它所需要的任何其他资源,例如翻译,dijit的小部件,被提供从服务器。你可以读到它在6.0信息中心:http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp?topic=%2Fcom.ibm.rad.worklight.doc%2Ftopics%2Fcdojolibprjsetupwl.html

Let's back up just a bit. In nsand's post in regard to the Console View, what he was trying to determine is if your application is using the new Dojo Library Server that was introduced in 6.0. In short, for 6.0, your application only has within it Dojo Mobile Layers. Any other resources it needs, e.g. translations, dijit widgets, are being served from the server. You can read about it in the 6.0 Information Center: http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp?topic=%2Fcom.ibm.rad.worklight.doc%2Ftopics%2Fcdojolibprjsetupwl.html

如果您按照nsand的步骤取消选中提供图书馆资源,这将关闭你的应用程序的访问Dojo库/服务器。它的所有Dojo的需求必须由道场移动层来处理,或者你不得不复制了所需的资源投入到项目中。

If you follow nsand's steps for unchecking Provide Library Resources, this turns off your application's access to the Dojo Library/Server. All of its Dojo needs must be handled by the Dojo Mobile layers, or you had to have copied the needed resources into the project.

所以, 第1步:验证您的应用作品,在移动浏览器模拟器提供图书馆资源进行检查。如果控制台日志中显示的资源正在从服务器提供服务,那么这些都部署到AVD或设备

So Step 1: Verify your application works in the Mobile Browser Simulator with Provide Library Resources checked. If the Console log is showing resources being served from the server, then these have to be copied to your application before deploying to AVD or a device

步骤2:当你觉得你有你的项目中的所有道场/资源,取消提供图书馆资源和MBS再次测试。如果失败的MBS,那么缺少的东西在你的应用程序是在库/服务器。您可以检查提供图书馆资源并重新测试,看它是否说明你那是什么。不是所有的资源被示出,例如如果有一个丢失的CSS文件。

Step 2: After you think you have all Dojo/resources within your project, uncheck Provide Library Resources and test it again in MBS. If it fails in MBS, then something is missing in your application that is in the library/server. You can check Provide Library Resources and retest to see if it shows you what that is. Not all resources are shown, e.g. if there's a missing CSS file.

让我们知道,如果可以帮助你找到问题。如果取消选中,提供图书馆资源并能正常工作的MBS,但未能在设备上,那么我们就需要到别处。

Let us know if that helps you find the problem. If you uncheck Provide Library Resources and it works fine in MBS but fails on the device, then we need to look elsewhere.

(注:有一个缺陷,起价使用Dojo库/ Server和AVD或设备在页码$ pvents你这很快就会解决尽管如此,使用Dojo库/ Server是一个开发时间。概念。在你移动到生产,你的应用程序需要获得所有必要的资源W / O他们正在从Dojo库/ Server中的工作室担任)。

(note: there is a defect that prevents you from using the Dojo Library/Server with AVD or on your device. This will be fixed soon. None the less, using the Dojo Library/Server is a development time concept. Before you move to production, you app needs access to all of the necessary resources w/o them being served from the Dojo Library/Server in Studio).