2

当我将我在此 url 中提供的身份放入 以下网址时,我遵循 [Twilio quickstart-android] [1]:https : //www.twilio.com/docs/api/video/guide/quickstart-android:htp:// 0fd251a7.ngrok.io/video-quickstart-php-master/token.php在 poupup 内(邀请参与者),当我点击屏幕末尾的发送时,显示 onLocalvideoTrackAdded 和一个黑色的小方块在最后关闭了大约 30-40秒。在网址http://0fd251a7.ngrok.io/video-quickstart-php-master/我的相机已打开并且没有收到我从应用程序发送的请求的任何邀请。

并且是编译'com.twilio:conversations-android:0.12.2'在依赖项中的build.gradle(Module:app)而不是build.gradle(project:video-quickstart-php-master_test)的问题

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
       jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.2'
    }
}

        allprojects {
            repositories {
                jcenter()
            }
        }

    /* i have comment this becouse give me an error at android studio that the build file my be a missing a gradle plugin. */

    //compile 'com.twilio:conversations-android:0.12.2'

这是 build.gradle(Module:app)

apply plugin: 'com.android.application'
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.twilio.conversations.quickstart"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    testCompile 'junit:junit:4.12'

    compile 'com.koushikdutta.ion:ion:2.1.7'
    compile 'com.twilio:conversations-android:0.12.2'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
}
4

0 回答 0