skip to Main Content

I just installed a new SSD and reimported all my projects on a fresh copy of Android Studio Arctic Fox, and on one of my projects, I am having an issue with this custom view:

import android.content.Context;
import android.util.AttributeSet;

import com.devbrackets.android.exomedia.ui.widget.VideoView;

public class PlaybackView extends VideoView {

    public PlaybackView(Context context) {
        super(context);
    }

    public PlaybackView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public PlaybackView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public PlaybackView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @Override
    public void onPlaybackEnded() {
        pause();
    }
}

For some reason, Android Studio is giving the error "Cannot resolve symbol ‘devbrackets’". I have the exomedia library imported in Gradle, as well as jcenter() (apparently they have not yet migrated over to mavenCentral).

2

Answers


  1. Chosen as BEST ANSWER

    Looks like I had to import it in Gradle this way for Android Studio to see it:

    implementation group: 'com.devbrackets.android', name: 'exomedia', version: '4.3.0'
    

    Version 5.0.0 wouldn't work.


  2. I’ve got this error because android studio chipmunk deleted jcenter() as "deprecated". So I just returned jcenter(), because Pink Jazz right – devbrackets have not yet migrated over to mavenCentral for now.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search