{ "id": "172231", "key": "TIMOB-26395", "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": null, "resolutiondate": null, "created": "2018-09-17T08:16:23.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Hyperloop", "engReviewed" ], "versions": [ { "id": "20220", "name": "Release 7.3.1", "archived": false, "released": true, "releaseDate": "2018-08-30" }, { "id": "20232", "name": "Hyperloop 3.1.2", "archived": false, "released": true } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-22T13:49:06.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Issue:* I am trying to build App with Twilio SDK using the buid.gradle file but the App is not packaging. It shows the following error\r\n\r\n{code:title=error}\r\n[ERROR] Failed to package application:\r\n[ERROR] \r\n[ERROR] ERROR: In VideoView, unable to find attribute overlaySurface\r\n{code}\r\n\r\n*Steps to Reproduce:*\r\n\r\n1. Create an Alloy App with Hyperloop enable\r\n2. Paste the attached build.gradle file to the project root\r\n3. Ensure you have installed at least Gradle 4.1 by running *brew install gradle* and *brew update gradle*\r\n4. Run gradle in project root to pull down the necessary android libraries into platform/android:\r\n*gradle getDeps*\r\n5. Now run your App and see the console log\r\n\r\n*Test Code*\r\n{code:title=index.js}\r\nvar Context = require('android.content.Context');\r\nvar View = require(\"android.view.View\");\r\nvar OnClickListener = require('android.view.View.OnClickListener');\r\nvar Button = require(\"android.widget.Button\");\r\nvar AudioAttributes = require('android.media.AudioAttributes');\r\nvar AudioManager = require('android.media.AudioManager');\r\nvar Intent = require('android.content.Intent');\r\nvar Build = require('android.os.Build'); \r\nvar Video = require('com.twilio.video.Video');\r\nvar VideoTrack = require('com.twilio.video.VideoTrack'); \r\nvar VideoView = require('com.twilio.video.VideoView');\r\nvar LogLevel = require('com.twilio.video.LogLevel'); \r\n\r\nvar Gravity = require('android.view.Gravity');\r\nvar Activity = require('android.app.Activity');\r\nvar activity = new Activity(Ti.Android.currentActivity);\r\nvar List = require('java.util.List');\r\nvar Map = require('java.util.Map');\r\n\r\nvar LOCAL_AUDIO_TRACK_NAME = \"mic\";\r\nvar LOCAL_VIDEO_TRACK_NAME = \"camera\";\r\nvar cameraCapturerCompat;\r\nvar accessToken = \"\";\r\nactivity.setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\r\n\r\nVideo.setLogLevel(LogLevel.ALL);\r\nvar primaryVideoView = VideoView(activity); \r\n$.container.open();\r\n{code}\r\n\r\nLet me know if you need anythign else.", "attachment": [ { "id": "65530", "filename": "build.gradle", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-09-17T08:14:09.000+0000", "size": 342, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Android: Hyperloop- App is not packaging with hyperloop and twilio SDK.", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n\r\nNode.js\r\n Node.js Version = 8.10.0\r\n npm Version = 5.8.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\n\r\nTitanium SDK\r\n SDK Version = 7.3.1.GA\r\n Target Platform = android HTC One v6.0.1", "closedSprints": [ { "id": 1078, "state": "closed", "name": "2018 Sprint 20 SDK", "startDate": "2018-09-23T16:57:58.349Z", "endDate": "2018-10-07T16:57:00.000Z", "completeDate": "2018-10-07T23:31:40.476Z", "originBoardId": 114 }, { "id": 1084, "state": "closed", "name": "2018 Sprint 21", "startDate": "2018-10-07T23:32:40.560Z", "endDate": "2018-10-21T23:32:00.000Z", "completeDate": "2018-10-21T23:19:05.460Z", "originBoardId": 114 }, { "id": 1088, "state": "closed", "name": "2018 Sprint 22", "startDate": "2018-10-21T23:20:52.653Z", "endDate": "2018-11-04T23:20:00.000Z", "completeDate": "2018-11-04T23:29:59.423Z", "originBoardId": 114 } ], "comment": { "comments": [], "maxResults": 4, "total": 4, "startAt": 0 } } }