[TIMOB-26395] Android: Hyperloop- App is not packaging with hyperloop and twilio SDK.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 7.3.1, Hyperloop 3.1.2 |
Fix Version/s | n/a |
Components | Android |
Labels | Hyperloop, engReviewed |
Reporter | Motiur Rahman |
Assignee | Joshua Quick |
Created | 2018-09-17T08:16:23.000+0000 |
Updated | 2019-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
File | Date | Size |
---|---|---|
build.gradle | 2018-09-17T08:14:09.000+0000 | 342 |
No comments