Java 无法解析玩家的符号
我正在遵循brightcove native sdk android的标准来实现一个媒体播放器 与build.gradle的同步通过了ok,但在构建我的应用程序时,我遇到了错误: 无法解析符号“BrightcovePlayer” 我认为这与快速入门中提到的存储库有关,但无法找到根本原因。 我也关注这些问题:Java 无法解析玩家的符号,java,android,media-player,brightcove,Java,Android,Media Player,Brightcove,我正在遵循brightcove native sdk android的标准来实现一个媒体播放器 与build.gradle的同步通过了ok,但在构建我的应用程序时,我遇到了错误: 无法解析符号“BrightcovePlayer” 我认为这与快速入门中提到的存储库有关,但无法找到根本原因。 我也关注这些问题: 当前我的代码看起来像: MainActivity.java package com.example.jchavarr.helloworld; import android.supp
package com.example.jchavarr.helloworld;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.R;
public class MainActivity extends BrightcovePlayer {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
brightcoveVideoView = (BrightcoveExoPlayerVideoView) findViewById(R.id.brightcove_video_view);
}
}
活动\u main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.brightcove.playvideos.MainActivity">
<!-- Implementing the player from HLS Brightcove-->
<!-- https://support.brightcove.com/hls-playback-native-sdk-android -->
<com.brightcove.player.view.BrightcoveExoPlayerVideoView
android:id="@+id/brightcove_video_view"
android:layout_width="match_parent"
android:layout_height="280dp"
android:layout_gravity="center"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
/>
</android.support.constraint.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.jchavarr.helloworld">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
我需要下载一些文件的AAR吗?
URL是正确的存储库吗?
是否需要放置软件包:package com.brightcove.playvideos;在MainActivity.java中,修复程序正在导入《快速入门指南》中未提及的一些必需的软件包:
import com.brightcove.player.model.DeliveryType;
import com.brightcove.player.model.Video;
import com.brightcove.player.view.BrightcoveExoPlayerVideoView;
import com.brightcove.player.view.BrightcovePlayer;
import com.brightcove.player.model.DeliveryType;
import com.brightcove.player.model.Video;
import com.brightcove.player.view.BrightcoveExoPlayerVideoView;
import com.brightcove.player.view.BrightcovePlayer;