{ "id": "163859", "key": "TIMOB-24013", "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": [ { "id": "19381", "name": "Hyperloop 2.1.1", "archived": false, "released": true, "releaseDate": "2017-06-02" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-04T15:42:07.000+0000", "created": "2016-10-10T21:27:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:49:19.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": "h5.Issue Description\r\n\r\nFor the purpose of using custom Java classes, we have created a custom aar file and added it to platform folder.\r\nAfter the build process, even though the class is available in the corresponding classes.jar file, it is giving an error as \"Requested module not found\" while importing it.\r\n\r\nh5. Steps to reproduce:\r\n\r\n1.Create an Android module(samplemodule) in Android Studio with some sample class. Let's say it is com.test.FirstClass\r\n2. Build aar file for this module (samplemodule-release.aar)\r\n3. Create an Android project in Appcelerator Stuido and copy the samplemodule-release.aar to android folder in platform section of this new Appcelerator Project.\r\n4. Try to import the class in the android module as follows:\r\nvar FirstClass = require('com.test.FirstClass');\r\n5. Everything will work fine.\r\n6. Now add a new class called com.test.SecondClass in the Android module in Android Studio.\r\n7. Clean the Android module and build aar file again (samplemodule-release.aar).\r\n8. Now replace the old aar file in platform folder of Appcelerator project with this new aar file.\r\n9. If you try to import the second class that is created as follows, it will give an error as 'requested module not found'.\r\n{code}\r\nvar SecondClass = require('com.test.SecondClass');\r\n{code}", "attachment": [ { "id": "60480", "filename": "testmodule-release.aar", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-10T21:24:14.000+0000", "size": 15413, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Hyperloop: Android - Not recognizing all classes from .aar", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 883, "state": "closed", "name": "2017 Sprint 09 SDK", "startDate": "2017-04-23T21:46:54.309Z", "endDate": "2017-05-07T21:46:00.000Z", "completeDate": "2017-05-08T00:25:44.276Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "399341", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As discussed on the call, please let me know where i can get the version 2.0.0 to try. \r\n\r\nThanks", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-19T06:13:52.000+0000", "updated": "2016-10-19T06:13:52.000+0000" }, { "id": "402438", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rramirez] Did you try this again?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-01T21:37:20.000+0000", "updated": "2016-12-01T21:37:20.000+0000" }, { "id": "402480", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, works since Hyperloop 2.X thanks.", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-02T18:09:57.000+0000", "updated": "2016-12-02T18:09:57.000+0000" }, { "id": "406482", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to successfully reproduce the issue by following the steps in the description.\r\n\r\nTried with: \r\nSDK 5.5.0.GA, Hyperloop 1.2.8\r\nSDK 6.0.1.GA, Hyperloop 2.0.0\r\nSDK 6.0.1.GA Hyperloop 2.1.0 beta\r\n\r\n{code}\r\n[ERROR] : TiExceptionHandler: (main) [432,432] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : TiExceptionHandler: (main) [1,433] - In ti:/module.js:303,2\r\n[ERROR] : TiExceptionHandler: (main) [0,433] - Message: Uncaught Error: Requested module not found: com.example.android.samplemodule.com.test.SecondClass\r\n[ERROR] : TiExceptionHandler: (main) [0,433] - Source: \tthrow new Error(\"Requested module not found: \" + request); // TODO Set 'code' property to 'MODULE_NOT_FOUND' to match Node?\r\n[DEBUG] : OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true\r\n\r\n[ERROR] : V8Exception: Exception occurred at ti:/module.js:303: Uncaught Error: Requested module not found: com.example.android.samplemodule.com.test.SecondClass\r\n{code}\r\n\r\nAppc Studio : 4.8.1.201612050850\r\nSDK Version : 6.1.0.GA. 5.0.0.GA\r\nMac OS Version : 10.12.2\r\nXcode Version : Xcode 8.2.1 Build version 8C1002\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.9-1\",\"CLI\":\"6.1.0\"}\r\nTi CLI : 5.0.11\r\nAlloy : 1.9.5\r\nNode : v4.6.0\r\nHyperloop: 1.2.8, 2.0.0, 2.1.0 beta\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-07T01:02:05.000+0000", "updated": "2017-02-07T22:10:31.000+0000" }, { "id": "407455", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~rramirez], this is a metabase caching issue for third party libraries. Until we fix this, there is a simple workaround:\r\n\r\nLook for the following line in the build log:\r\n{code}\r\n[INFO] [Hyperloop] Generating system metabase\r\n[INFO] [Hyperloop] Generated AST cache file at /var/folders/mh/2_3ycdzx0v79p0wglc59lyrh0000gp/T/hyperloop_android-23_metabase.590a5d257d5adc20b7449acdd5dc3ff56514d125.json.gz in 3.089 seconds\r\n{code}\r\n\r\nDeleting the mentioned cache file will solve the issue. This only needs to be done when a third party library is replaced. Adding a new one or removing an existing one will automatically invalidate the cache file.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-21T00:09:31.000+0000", "updated": "2017-02-21T00:09:31.000+0000" }, { "id": "412178", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hii [~jvennemann] can you please tell me where exactly is located this folder /var/folders/mh/2_3ycdzx0v79p0wglc59lyrh0000gp/T/hyperloop_android-23_metabase.590a5d257d5adc20b7449acdd5dc3ff56514d125.json.gz ? รงรง", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T19:38:21.000+0000", "updated": "2017-03-14T19:38:21.000+0000" }, { "id": "412463", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~rramirez], it's different depending on the .aar files used. You have to look in the build log of the project and search for these lines:\r\n\r\nWhen the project is build for the first time or you added/removed an .aar file:\r\n{code}\r\n[INFO] [Hyperloop] Generating system metabase\r\n[INFO] [Hyperloop] Generated AST cache file at /path/to/cache/file/on/your/machine/metabase.json.gz in 3.363 seconds\r\n{code}\r\n\r\nWhen you replaced an .aar file:\r\n{code}\r\n[INFO] [Hyperloop] Using system metabase cache file at /path/to/cache/file/on/your/machine/metabase.json.gz.json.gz\r\n{code}", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-03-15T02:17:09.000+0000", "updated": "2017-03-15T02:17:09.000+0000" }, { "id": "418540", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'll discuss this ticket with Eric tomorrow on the status.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-01T23:05:25.000+0000", "updated": "2017-05-01T23:05:25.000+0000" }, { "id": "419092", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/hyperloop.next/pull/168\r\nPR (2_1_X): https://github.com/appcelerator/hyperloop.next/pull/169", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-04T14:25:24.000+0000", "updated": "2017-05-04T14:25:24.000+0000" }, { "id": "440111", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:19.000+0000", "updated": "2018-08-06T17:49:19.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }