skip to Main Content

I’m using Android Studio 2020.3.1 Patch 4.
I built gradle and it was successful, but when I try running my app, I get error

could not find jp.co.cyberagent.android:gpuimage:2.0.4.

Required by:
     project:app

I added gradle dependency

implementation 'jp.co.cyberagent.android:gpuimage:2.0.4'

I also added in the build.gradle

sourceset{
main.jniLibs.srcDirs =["libs"]
}

as suggested from

"GPUImage.h" not found

and

How to include *.so library in Android Studio?

But nothing is working. still gives me the same error message

3

Answers


  1. Chosen as BEST ANSWER

    After Long Search

    I that's the problem is that I removed

    jcenter()
    

    from gradle repository. I removed it because it is deprecated but it turns out that jcenter() is the only repository containing gpuimage as of current.


  2. You can use mavenCentral instead of jcenter for this jp.co.cyberagent.android:gpuimage:2.x.x.

    cf. official doc

    Login or Signup to reply.
  3. Add this line in Module build.gradle

    implementation
    ‘jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1’

    and add this line in project level build.gradle

    mavenCentral()

    then click on sync now issue solve

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