[TIMOB-24201] Hyperloop: Android - Can't find requested module from .aar file in android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-03-21T12:59:11.000+0000 |
Affected Version/s | Release 6.0.0, Hyperloop 2.0.1, Hyperloop 2.0.0 |
Fix Version/s | n/a |
Components | Android, Hyperloop |
Labels | n/a |
Reporter | Mostafizur Rahman |
Assignee | Gary Mathews |
Created | 2016-12-07T17:30:42.000+0000 |
Updated | 2017-03-29T21:29:42.000+0000 |
Description
*Steps to reproduce* :
1. Create a test project.
2. Enable Hyperloop.
3. Add [Third-party libraries](http://www.filedropper.com/video-android-100-beta4) on Platform > android
4. Add the following code in index.js
(function constructor(args) {
var VideoView = require('com.twilio.video.VideoView');
var Activity = require('android.app.Activity');
var activity = new Activity(Ti.Android.currentActivity);
var primaryVideoView = new VideoView(activity);
$.container.add(primaryVideoView);
$.container.open();
})(arguments[0] || {});
5. Build on android devices.
*Error Log* :
[ERROR] : TiExceptionHandler: (main) [419,419] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [1,420] - In ti:/module.js:303,2
[ERROR] : TiExceptionHandler: (main) [0,420] - Message: Uncaught Error: Requested module not found: com.twilio.video.VideoView
[ERROR] : TiExceptionHandler: (main) [0,420] - Source: throw new Error("Requested module not found: " + request); // TODO Set 'code' property to 'MODULE_NOT_FOUND' to match Node?
[ERROR] : V8Exception: Exception occurred at ti:/module.js:303: Uncaught Error: Requested module not found: com.twilio.video.VideoView
[ERROR] : SensorManager: uid = 10413
*Test Environment*
Operating System
Name = Mac OS X
Version = 10.11.6
Architecture = 64bit
# CPUs = 4
Memory = 8589934592
Node.js
Node.js Version = 4.4.4
npm Version = 2.15.1
Titanium CLI
CLI Version = 5.0.10
Titanium SDK
SDK Version = 6.0.0.GA
<module platform="android" version="2.0.0">hyperloop</module>
Thanks [~gmathews], Tested this issues with attached module and following test code. But its not working its showing bellow error. *Test Environments* Ti SDK 6.0.0.GA CLI 6.0.0 Hyperloop 2.1.0 hyperloop plugins 2.0.0 *Test Code*
*Errors*
Can you please review again? Thanks Again
master: https://github.com/appcelerator/hyperloop.next/pull/108 2_0_X: https://github.com/appcelerator/hyperloop.next/pull/109
Duplicate of TIMOB-24176
Closing ticket as duplicate.