Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26395

Android: Hyperloop- App is not packaging with hyperloop and twilio SDK.

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 7.3.1, Hyperloop 3.1.2
    • Fix Version/s: None
    • Component/s: Android
    • Environment:
    • Sprint:
      2018 Sprint 20 SDK, 2018 Sprint 21, 2018 Sprint 22

      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

      [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

      index.js

      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

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              morahman Motiur Rahman
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6587
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration