Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26395] Android: Hyperloop- App is not packaging with hyperloop and twilio SDK.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 7.3.1, Hyperloop 3.1.2
Fix Version/sn/a
ComponentsAndroid
LabelsHyperloop, engReviewed
ReporterMotiur Rahman
AssigneeJoshua Quick
Created2018-09-17T08:16:23.000+0000
Updated2019-05-22T13:49:06.000+0000

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
[ERROR] Failed to package application:
[ERROR]   
[ERROR] ERROR: In <declare-styleable> VideoView, unable to find attribute overlaySurface
*Steps to Reproduce:* 1. Create an Alloy App with Hyperloop enable 2. Paste the attached build.gradle file to the project root 3. Ensure you have installed at least Gradle 4.1 by running *brew install gradle* and *brew update gradle* 4. Run gradle in project root to pull down the necessary android libraries into platform/android: *gradle getDeps* 5. Now run your App and see the console log *Test Code*
var Context = require('android.content.Context');
var View = require("android.view.View");
var OnClickListener = require('android.view.View.OnClickListener');
var Button = require("android.widget.Button");
var AudioAttributes = require('android.media.AudioAttributes');
var AudioManager = require('android.media.AudioManager');
var Intent = require('android.content.Intent');
var Build = require('android.os.Build'); 
var Video = require('com.twilio.video.Video');
var VideoTrack = require('com.twilio.video.VideoTrack'); 
var VideoView = require('com.twilio.video.VideoView');
var LogLevel = require('com.twilio.video.LogLevel');  

var Gravity = require('android.view.Gravity');
var Activity = require('android.app.Activity');
var activity = new Activity(Ti.Android.currentActivity);
var List = require('java.util.List');
var Map = require('java.util.Map');

var LOCAL_AUDIO_TRACK_NAME = "mic";
var LOCAL_VIDEO_TRACK_NAME = "camera";
var cameraCapturerCompat;
var accessToken = "";
activity.setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);

Video.setLogLevel(LogLevel.ALL);
var primaryVideoView = VideoView(activity); 
$.container.open();
Let me know if you need anythign else.

Attachments

FileDateSize
build.gradle2018-09-17T08:14:09.000+0000342

Comments

No comments

JSON Source