CameraKit / camerakit-android

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
https://camerakit.io
MIT License
5.36k stars 878 forks source link

Could not resolve com.camerakit:camerakit:1.0.0-beta3.10 #643

Open hemant1109 opened 1 year ago

hemant1109 commented 1 year ago

I am using this libs in my project and run Bitbucket pipeline. It gives me this error every time from 2 weeks.

Could not resolve com.camerakit:camerakit:1.0.0-beta3.10. > Could not get resource 'https://pay.cards/maven/com/camerakit/camerakit/1.0.0-beta3.10/camerakit-1.0.0-beta3.10.pom'. > Could not GET 'https://pay.cards/maven/com/camerakit/camerakit/1.0.0-beta3.10/camerakit-1.0.0-beta3.10.pom'. > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.2/userguide/build_environment.html#gradle_system_properties > Remote host terminated the handshake

Please help.

dabeedj commented 1 year ago

Same here

prikshitmauryaenno commented 1 year ago

I'm also facing the same issue. can anyone please help here...

image

handirusli commented 1 year ago
  1. Visit : https://jitpack.io/
  2. Type : https://github.com/CameraKit/camerakit-android on Git URL repo then click "Look Up"
  3. Follow instruction on that page

Please let me know if it works.

handirusli commented 1 year ago

Hi @anurag-oneassist , Yes, i notice that jcenter down, but i found it in jitpack ( i'm using the older version ) have you change your dependencies to dependencies { implementation 'com.github.CameraKit:camerakit-android:v1.0.0-beta3.11' } ?

pramahaditamaputra commented 1 year ago

Hi @handirusli how about to solve the import com.jpegkit.Jpeg ?

fwallz commented 1 year ago

@pramahaditamaputra have you tried the import below?

implementation 'com.github.CameraKit:jpegkit-android:v0.2.2'

hemant1109 commented 1 year ago

Hi @handirusli, thank you so much for your help. this is working fine for me.

klower commented 1 year ago

Failed to resolve: com.camerakit:camerakit:v1.0.0-beta3.11

hemant1109 commented 1 year ago

@klower

https://github.com/CameraKit/camerakit-android/issues/643#issuecomment-1666638342

Please replace it with this suggested sdk. It will help.

projectdelta6 commented 1 year ago

Hi, just found this issue when updating an older project, our project was using v0.13.5 but that build failed on Jitpack, Build Log Link, I've set the app to use v0.13.4 for now 🤞🏼 hoping there are no issues as a result

hemant1109 commented 1 year ago

@handirusli your SDK is not capturing image. cameraKitView.captureImage(ImageCallback callback) is not calling callback.onImage().

hemant1109 commented 1 year ago

Hi, just found this issue when updating an older project, our project was using v0.13.5 but that build failed on Jitpack, Build Log Link, I've set the app to use v0.13.4 for now 🤞🏼 hoping there are no issues as a result

Does this mean that the mentioned issue is resolved ?

projectdelta6 commented 1 year ago

Hi, just found this issue when updating an older project, our project was using v0.13.5 but that build failed on Jitpack, Build Log Link, I've set the app to use v0.13.4 for now 🤞🏼 hoping there are no issues as a result

Does this mean that the mentioned issue is resolved ?

No the build is still failed on Jitpack for version 0.13.5 so that version is not available to use

hemant1109 commented 1 year ago

Hi, just found this issue when updating an older project, our project was using v0.13.5 but that build failed on Jitpack, Build Log Link, I've set the app to use v0.13.4 for now 🤞🏼 hoping there are no issues as a result

Does this mean that the mentioned issue is resolved ?

No the build is still failed on Jitpack for version 0.13.5 so that version is not available to use

But I am using v1.0.0-beta3.11. So any news for it ?

larcho commented 1 year ago

@pramahaditamaputra have you tried the import below?

implementation 'com.github.CameraKit:jpegkit-android:v0.2.2'

Done this, but now I'm getting:

Didn't find class "com.jpegkit.Jpeg" on path: DexPathList[[dex file ...

I feel like CameraKit needs to be updated as well for this to work?

koolfreak commented 1 year ago

@hemant1109 "your SDK is not capturing image. cameraKitView.captureImage(ImageCallback callback) is not calling callback.onImage()." Im having same issue, did you find solution for this issue? thanks

hemant1109 commented 1 year ago

@hemant1109 "your SDK is not capturing image. cameraKitView.captureImage(ImageCallback callback) is not calling callback.onImage()." Im having same issue, did you find solution for this issue? thanks

Unfortunately did not find any solution. So I am using the old lib and this lib is not working with the Pipeline.

koolfreak commented 1 year ago

@hemant1109 "your SDK is not capturing image. cameraKitView.captureImage(ImageCallback callback) is not calling callback.onImage()." Im having same issue, did you find solution for this issue? thanks

Unfortunately did not find any solution. So I am using the old lib and this lib is not working with the Pipeline.

unfortunately i dont have the old lib, can you share the old library? both for camerakit and jpegkit? thanks

hemant1109 commented 1 year ago

@hemant1109 "your SDK is not capturing image. cameraKitView.captureImage(ImageCallback callback) is not calling callback.onImage()." Im having same issue, did you find solution for this issue? thanks

Unfortunately did not find any solution. So I am using the old lib and this lib is not working with the Pipeline.

unfortunately i dont have the old lib, can you share the old library? both for camerakit and jpegkit? thanks

Try this.

implementation 'com.camerakit:camerakit:1.0.0-beta3.10'
implementation 'com.camerakit:jpegkit:0.1.0'
larcho commented 1 year ago

@hemant1109 "your SDK is not capturing image. cameraKitView.captureImage(ImageCallback callback) is not calling callback.onImage()." Im having same issue, did you find solution for this issue? thanks

Unfortunately did not find any solution. So I am using the old lib and this lib is not working with the Pipeline.

unfortunately i dont have the old lib, can you share the old library? both for camerakit and jpegkit? thanks

Try this.

implementation 'com.camerakit:camerakit:1.0.0-beta3.10'
implementation 'com.camerakit:jpegkit:0.1.0'

This works for you because you still have the cached version stored in your ~/.gradle/ folder.

I can share the old libraries with you, I just don't know if that goes against any licensing rules.

hemant1109 commented 1 year ago

@hemant1109 "your SDK is not capturing image. cameraKitView.captureImage(ImageCallback callback) is not calling callback.onImage()." Im having same issue, did you find solution for this issue? thanks

Unfortunately did not find any solution. So I am using the old lib and this lib is not working with the Pipeline.

unfortunately i dont have the old lib, can you share the old library? both for camerakit and jpegkit? thanks

Try this.

implementation 'com.camerakit:camerakit:1.0.0-beta3.10'
implementation 'com.camerakit:jpegkit:0.1.0'

This works for you because you still have the cached version stored in your ~/.gradle/ folder.

I can share the old libraries with you, I just don't know if that goes against any licensing rules.

Yes I got it in the cache dir. let's find another solution/lib to overcome this.

larcho commented 1 year ago

@hemant1109 "your SDK is not capturing image. cameraKitView.captureImage(ImageCallback callback) is not calling callback.onImage()." Im having same issue, did you find solution for this issue? thanks

Unfortunately did not find any solution. So I am using the old lib and this lib is not working with the Pipeline.

unfortunately i dont have the old lib, can you share the old library? both for camerakit and jpegkit? thanks

Try this.

implementation 'com.camerakit:camerakit:1.0.0-beta3.10'
implementation 'com.camerakit:jpegkit:0.1.0'

This works for you because you still have the cached version stored in your ~/.gradle/ folder. I can share the old libraries with you, I just don't know if that goes against any licensing rules.

Yes I got it in the cache dir. let's find another solution/lib to overcome this.

Reality is, this library is overall no longer being supported. The last release was made back in 2019. I briefly tried downloading the source code myself and building it but without success.

There are 2 options here:

  1. Someone goes ahead and updates this library adding support to the newer jpegkit among other things, build a release and publish it to a none deprecated repository.
  2. Look for an alternative to this library. It's overall a bad idea to use unsupported deprecated libraries to begin with.

You can bundle the old libraries using a local copy (gradle supports that), but that's an interim fix.

koolfreak commented 1 year ago

thanks guys, looking forward who can share their cache/save old libraries. I need to build my old app with these libraries. If I ever had one i will put it on lib folder and commit to repostiory

larcho commented 1 year ago

@koolfreak you can find me on Twitter with the same handle, I'll share the library with you there.

koolfreak commented 1 year ago

@koolfreak you can find me on Twitter with the same handle, I'll share the library with you there.

ok i start following you, me is @cybernetics_net. also can't seem to dm you

koolfreak commented 1 year ago

@larcho thanks for sharing...now it works!

fwallz commented 1 year ago

Hi @larcho , @koolfreak , is there any way you could share the files with me too? I started following you both on twitter but i am unable to DM you. Thanks.

saulopef commented 1 year ago

Hi, still getting error on a legacy app! can some one share a solution that anyone in the community can use? maybe upload the cached files to a repository?

fwallz commented 1 year ago

Hi @larcho , @koolfreak no need for the files anymore. managed to make it work. Thanks anyway.

For others to make this work:

In build.gradle:

implementation 'com.github.CameraKit:camerakit-android:v1.0.0-beta3.11'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.41'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0'

Then download the Source code for jpegkit-v0.1.0

https://github.com/CameraKit/jpegkit-android/archive/refs/tags/v0.1.0.zip

Extract, copy/paste folder jpegkit in the root folder of your project.

In build.gradle:

implementation project(':jpegkit')

in settings.gradle:

include ':app', ':jpegkit'

Build and that should be it. Happy coding.

larcho commented 1 year ago

Considering the huge amount of stars this project has, someone should try to update the library as a whole.

My Kotlin is so very rusty though, but I'll give it a shot.

saulopef commented 1 year ago

Hi @larcho , @koolfreak no need for the files anymore. managed to make it work. Thanks anyway.

For others to make this work:

In build.gradle:

implementation 'com.github.CameraKit:camerakit-android:v1.0.0-beta3.11'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.41'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0'

Then download the Source code for jpegkit-v0.1.0

https://github.com/CameraKit/jpegkit-android/archive/refs/tags/v0.1.0.zip

Extract, copy/paste folder jpegkit in the root folder of your project.

In build.gradle:

implementation project(':jpegkit')

in settings.gradle:

include ':app', ':jpegkit'

Build and that should be it. Happy coding.

hi @fwallz, tks for your solution, now I'm facing this error, do you solved it?

Unable to load class 'org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider'.

This is an unexpected error. Please file a bug containing the idea.log file.
fwallz commented 1 year ago

This is how my build.gradle for jpegkit project looks like:

apply plugin: 'com.android.library'

android {
    compileSdkVersion 32
    defaultConfig {
        minSdkVersion 25
        targetSdkVersion 32
    }
    externalNativeBuild {
        cmake {
            path 'src/main/CMakeLists.txt'
        }
    }
}

dependencies {
    implementation 'com.android.support:exifinterface:27.1.0'
}

Basically remove from top:

plugins {
    id 'com.jfrog.bintray' version '1.7.3'
    id 'com.github.dcendents.android-maven' version '1.5'
} 

And everything below:

dependencies {
    implementation 'com.android.support:exifinterface:27.1.0'
}
koolfreak commented 1 year ago

@fwallz just chec my github...thanks for pulling that altogether

645148995 commented 11 months ago

maven {url 'https://maven.aliyun.com/repository/public/'} maven {url 'https://maven.aliyun.com/repository/google/'} maven {url 'https://maven.aliyun.com/repository/central/'} maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'} 使用阿里云镜像解决这个问题

EdgarPozas commented 4 months ago

maven {url 'https://maven.aliyun.com/repository/public/'} maven {url 'https://maven.aliyun.com/repository/google/'} maven {url 'https://maven.aliyun.com/repository/central/'} maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'} 使用阿里云镜像解决这个问题

It works for me using gradle 8.4 I just added the maven urls in settings.gradle and it looks like

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {url 'https://maven.aliyun.com/repository/public/'}
        maven {url 'https://maven.aliyun.com/repository/google/'}
        maven {url 'https://maven.aliyun.com/repository/central/'}
        maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'}
    }
}

rootProject.name = "Project"
include ':app'

Root build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '8.4.1' apply false
    id 'com.android.library' version '8.4.1' apply false
}

Then added the camerakit package in the project build.gradle

plugins {
    id 'com.android.application'
}

android {
    namespace 'com.company.example'
    compileSdk 34

    defaultConfig {
        applicationId "com.company.example"
         minSdk 23
        targetSdk 34
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    buildFeatures {
        mlModelBinding true
    }
}

dependencies {
    implementation 'com.camerakit:camerakit:1.0.0-beta3.10'
    implementation 'com.camerakit:jpegkit:0.1.0'
}