{ "id": "154080", "key": "TIMOB-20210", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-02-12T17:13:22.000+0000", "created": "2016-01-01T17:15:31.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "hyperloop" ], "versions": [ { "id": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "issuelinks": [ { "id": "50573", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "154890", "key": "TIMOB-20394", "fields": { "summary": "Android: Support liveview with hyperloop module", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-03-20T21:36:00.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "Can’t to use hyperloop module.\r\n\r\n{code:javascript}\r\nvar View = require('android.view.View');\r\n{code}\r\n\r\nI got error:\r\n\r\n{code}\r\nError: Requested module not found: android.view.View\r\n{code}\r\n\r\nhttps://community.appcelerator.com/topic/4419/i-can-t-use-hyperloop-require-error", "attachment": [], "flagged": false, "summary": "Hyperloop Android: Requested module not found error", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Android, ti sdk 5.2.0 (custom build from source) or ti sdk 6.0.0.v20151223003308, hyperloop 1.1.0 beta, appc cli 5.1.0/5.2.0-55\r\n", "closedSprints": [ { "id": 580, "state": "closed", "name": "2016 Sprint 3 SDK", "startDate": "2016-01-30T01:31:48.991Z", "endDate": "2016-02-13T01:31:00.000Z", "completeDate": "2016-02-15T05:32:40.725Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "373704", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I tried to reproduce the issue. I wasn't able to reproduce the issue when I used 'var View = require('android.view.View');'. The statement is working as expected. I tried with the [example project|https://s3-us-west-2.amazonaws.com/appc-labs-server/downloads/hyperloop-examples.zip] provided [here|http://labs.appcelerator.com/project/55f74a9f421c44837717716b/Hyperloop-Module]. The project is working fine. \r\n\r\nh5. Tested Environment\r\n\r\nTi sdk 6.0.0.v20151228134127\r\nhyperloop 1.1.0 beta, \r\nappc cli 5.1.0\r\nAndroid 4.4.2\r\n\r\nPlease provide a sample code which regenerate the issue. Also, please provide the full error log. Thanks.\r\n\r\n\r\n ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-04T07:15:51.000+0000", "updated": "2016-01-04T07:15:51.000+0000" }, { "id": "373756", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "This example project also not work for me. Can you provide to me steps for find source of my problem?", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-01-04T21:27:26.000+0000", "updated": "2016-01-04T21:27:51.000+0000" }, { "id": "373790", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please provide the full code you are trying to run. The Hyperloop Module will now give you direct access to the native APIs. Please follow the instruction on the [video|http://labs.appcelerator.com/project/55f74a9f421c44837717716b/Hyperloop-Module] about how to use hyperloop module. There is a [blog|http://www.appcelerator.com/blog/2013/10/introducing-hyperloop/] post on the module. Also here is our [Git repository|https://github.com/appcelerator/hyperloop]. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-05T07:57:44.000+0000", "updated": "2016-01-05T07:57:44.000+0000" }, { "id": "373798", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-01-05T11:25:09.000+0000", "updated": "2016-01-05T11:25:49.000+0000" }, { "id": "373885", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Hyperloop is working fine with Liveview flag enabled in Android. I just tested again the example project. The project is working fine with Liveview enabled.\r\nh5. Tested Environment\r\n\r\nTi sdk 6.0.0.v20151228134127\r\nhyperloop 1.1.0 beta,\r\nappc CLI 5.1.0\r\nAndroid Device 4.4.2\r\nNode.js Version 4.2.2\r\nnpm Version 2.14.7\r\nCLI Version 5.0.5\r\n\r\n\r\nTry using SDK 6.0.0.v20151228134127. Thanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-06T06:14:05.000+0000", "updated": "2016-01-06T06:14:41.000+0000" }, { "id": "373900", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Hi again.\r\nExamples project is not working if Liveview flag enabled in Android.\r\nhttps://yadi.sk/i/qeQZvu-MmhrQd\r\n\r\n*Tested Environment*\r\n\r\n{code}\r\nhyperloop 1.1.0 beta\r\nTi SDK 6.0.0.v20160106002328\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.2\r\n Core Package = 5.1.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.5\r\n node-appc Version = 0.2.31\r\n{code}\r\n\r\nTested on Genymotion 4.2.2/4.4.2\r\n\r\nWorking fine without liveview flag enabled.\r\n", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-01-06T13:52:25.000+0000", "updated": "2016-01-06T13:52:25.000+0000" }, { "id": "373987", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Here is my test result with liveview enabled. http://postimg.org/image/on2qocvoz/\r\nExamples project is working when Liveview flag enabled in Android. The difference I see is, in the package.json file the version is \"version\": \"1.0.1\". This is the same [project|https://s3-us-west-2.amazonaws.com/appc-labs-server/downloads/hyperloop-examples.zip] in [here|http://labs.appcelerator.com/project/55f74a9f421c44837717716b/Hyperloop-Module]. I additionally add the module version 1.1.0 for Android which you can see in the module tag in tiapp.xml.\r\n\r\nh5. My Environment\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.2\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\nTitanium CLI\r\n CLI Version = 5.0.5\r\nTitanium SDK\r\n SDK Version = 6.0.0.v20151228134127\r\n SDK Path = /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.v20151228134127\r\n Target Platform = android\r\n\r\nCommand\r\n /usr/local/bin/node /Users/gsl001/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build --platform android --log-level trace --sdk 6.0.0.v20151228134127 --project-dir /Users/gsl001/Downloads/hyperloop-examples --target emulator --android-sdk /Users/gsl001/Documents/android-sdk-macosx --device-id Google Nexus 7 - 5.1.0 - API 22 - 800x1280 --skip-js-minify --liveview --deploy-type development --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 52989 --plugin-paths /Users/gsl001/.appcelerator/install/5.1.0/package/node_modules --config-file /var/folders/gw/3ksrznsd21v_bdlfq6ww1l080000gn/T/build-1452146275205.json --no-banner\r\n[INFO] : Found Titanium module id=hyperloop version=1.1.0 platform=android deploy-type=development path=/Users/gsl001/Downloads/hyperloop-examples/modules/android/hyperloop/1.1.0\r\n[INFO] : Found Titanium plugin id=ti.alloy version=1.0 \r\n[INFO] : Found Titanium plugin id=hyperloop version=latest \r\n[INFO] : Deploy type: development\r\n[INFO] : Building for target: emulator\r\n[INFO] : Building for emulator: Google Nexus 7 - 5.1.0 - API 22 - 800x1280\r\n[INFO] : Targeting Android SDK API: 23\r\n{code}\r\n\r\nTested on Genymotion emulator Google Nexus 7 - 5.1.0 - API 22 - 800x1280. Working fine with liveview flag enabled. Thanks.\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-07T06:34:07.000+0000", "updated": "2016-01-07T06:34:07.000+0000" }, { "id": "374007", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Do you tried select any item from example app?\r\n\r\nLink to the Hyperloop module that you pointed contains plugin version 1.1.0. \r\nCan you try install both parts from module package (module and plugin)?", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-01-07T13:40:54.000+0000", "updated": "2016-01-07T13:41:43.000+0000" }, { "id": "376687", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~falko] We don't officially support live view plus hyperloop at the same time yet. It may or may not work, we haven't tried and validated it yet, honestly.\r\n\r\nIs the original issue still happening? Is there a new issue here? The original issue looks like it may be invalid and likely stems from adding the module but not adding the plugin to tiapp.xml.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-02-12T00:42:46.000+0000", "updated": "2016-02-12T00:42:46.000+0000" }, { "id": "376719", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "*Tested Environment*\r\n\r\nTi Sdk 6.0.0.v20160211194748\r\nHyperloop 1.1.0 beta\r\nappc CLI 5.1.0\r\nAndroid Device 4.2.2\r\nNode.js Version 4.2.2\r\nnpm Version 2.14.7\r\nCLI Version 5.0.5\r\nAppcelerator Studio, build: 4.4.0.201511241829\r\n\r\nFresh project and fresh install hyperloop through Studio.\r\nHyperloop:\r\n Plugin version 1.1.0\r\n Module version 1.1.0\r\n\r\nLiveview: *disabled*\r\nProject type: Alloy\r\nTest code from original message.\r\n\r\n*Part of tiapp.xml:*\r\n{code:xml}\r\n\r\n hyperloop\r\n hyperloop\r\n \r\n 6.0.0.v20160211194748\r\n \r\n ti.alloy\r\n \r\n{code}\r\n\r\n\r\n*Result:*\r\n\r\n{code}\r\n[ERROR] : V8Exception: Exception occurred at ti:/module.js:280: Uncaught Error: Requested module not found: android.view.View\r\n{code}\r\n\r\n", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-02-12T09:03:31.000+0000", "updated": "2016-02-12T09:06:34.000+0000" }, { "id": "376721", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "*Tested Environment*\r\n\r\nTi Sdk 6.0.0.v20160211194748\r\nHyperloop 1.1.0 beta\r\nappc CLI 5.1.0\r\nAndroid Device 4.2.2\r\nNode.js Version 4.2.2\r\nnpm Version 2.14.7\r\nCLI Version 5.0.5\r\nAppcelerator Studio, build: 4.4.0.201511241829\r\n\r\nFresh project and fresh install hyperloop through Studio.\r\nHyperloop:\r\n Plugin version 1.1.0\r\n Module version 1.1.0\r\n\r\nLiveview: *disabled*\r\nProject type: Alloy\r\nTest code from original message.\r\n\r\n*Result:*\r\n\r\n{code}\r\n[ERROR] : V8Exception: Exception occurred at ti:/module.js:280: Uncaught Error: Requested module not found: android.view.View\r\n{code}\r\n\r\n\r\n\r\n I added this line by hand to the tiapp.xml:\r\n\r\n{code:xml}\r\nhyperloop\r\n{code}\r\n\r\n*Result:*\r\nOK\r\n\r\n\r\n\r\nThen run with Liveview enabled.\r\n\r\n*Result:*\r\n\r\n{code}\r\n[ERROR] : Error: Requested module not found: android.view.View\r\n[ERROR] : File: app.js\r\n[ERROR] : Line: undefined\r\n[ERROR] : SourceId: undefined\r\n[ERROR] : Backtrace:\r\n[ERROR] : undefined\r\n{code}\r\n\r\n", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-02-12T09:15:26.000+0000", "updated": "2016-02-12T09:15:26.000+0000" }, { "id": "376722", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "*Tested Environment*\r\n\r\nTi Sdk 6.0.0.v20160211194748\r\nHyperloop 1.1.0 beta\r\nappc CLI 5.1.0\r\nAndroid Device 4.2.2\r\nNode.js Version 4.2.2\r\nnpm Version 2.14.7\r\nCLI Version 5.0.5\r\nAppcelerator Studio, build: 4.4.0.201511241829\r\n\r\nFresh project and fresh install hyperloop through Studio.\r\nHyperloop:\r\n Plugin version 1.1.0\r\n Module version 1.1.0\r\n\r\nLiveview: *disabled*\r\nProject type: Alloy\r\nTest code from original message.\r\n\r\n*Result:*\r\n\r\n{code}\r\n[ERROR] : V8Exception: Exception occurred at ti:/module.js:280: Uncaught Error: Requested module not found: android.view.View\r\n{code}\r\n\r\n\r\n\r\n I added this line by hand to the tiapp.xml:\r\n\r\n{code:xml}\r\nhyperloop\r\n{code}\r\n\r\n*Result:*\r\nOK\r\n\r\nBTW I was made mistake with version of plugin but it runned successful.\r\n\r\n\r\nThen run with Liveview enabled.\r\n\r\n*Result:*\r\n\r\n{code}\r\n[ERROR] : Error: Requested module not found: android.view.View\r\n[ERROR] : File: app.js\r\n[ERROR] : Line: undefined\r\n[ERROR] : SourceId: undefined\r\n[ERROR] : Backtrace:\r\n[ERROR] : undefined\r\n{code}", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-02-12T09:20:57.000+0000", "updated": "2016-02-12T09:21:28.000+0000" }, { "id": "376742", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Ok, so it sounds like the resulted from an invalid setup at first where the plugin tag for hyperloop wasn't in the tiapp.xml, resulting in having no hyperloop javascript wrappers being generated. Once added it worked fine.\r\n\r\nThen when you turned on live view, it broke? That's not entirely unexpected - again hyperloop module is still in beta and we have made no effort yet to check compatibility with liveview. It's on our list of things to take a look at. So using both at the same time isn't yet supported.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-02-12T17:06:39.000+0000", "updated": "2016-02-12T17:06:39.000+0000" }, { "id": "376743", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Ok, so since the original ticket appears to be from an invalid setup, I'm going to mark this ticket as invalid. I've opened up a new ticket to support usage of hyperloop with liveview in TIMOB-20394 and add [~falko] as a watcher to it.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-02-12T17:13:23.000+0000", "updated": "2016-02-12T17:13:23.000+0000" }, { "id": "376744", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Ok thank you.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-02-12T17:26:17.000+0000", "updated": "2016-02-12T17:26:17.000+0000" }, { "id": "413993", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T21:36:00.000+0000", "updated": "2017-03-20T21:36:00.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }