Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hemant1109 opened this issue Jul 24, 2023 · 35 comments
Open

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

hemant1109 opened this issue Jul 24, 2023 · 35 comments

Comments

@hemant1109
Copy link

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
Copy link

dabeedj commented Jul 29, 2023

Same here

@prikshitmauryaenno
Copy link

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

image

@handirusli
Copy link

  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
Copy link

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
Copy link

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

@fwallz
Copy link

fwallz commented Aug 8, 2023

@pramahaditamaputra have you tried the import below?

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

@hemant1109
Copy link
Author

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

@klower
Copy link

klower commented Aug 15, 2023

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

@hemant1109
Copy link
Author

hemant1109 commented Aug 15, 2023

@klower

#643 (comment)

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

@projectdelta6
Copy link

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
Copy link
Author

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

@hemant1109
Copy link
Author

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
Copy link

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
Copy link
Author

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
Copy link

larcho commented Sep 1, 2023

@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
Copy link

koolfreak commented Sep 8, 2023

@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
Copy link
Author

@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
Copy link

@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
Copy link
Author

hemant1109 commented Sep 8, 2023

@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
Copy link

larcho commented Sep 8, 2023

@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
Copy link
Author

@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
Copy link

larcho commented Sep 8, 2023

@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
Copy link

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
Copy link

larcho commented Sep 8, 2023

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

@koolfreak
Copy link

@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
Copy link

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

@fwallz
Copy link

fwallz commented Sep 13, 2023

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
Copy link

saulopef commented Sep 14, 2023

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
Copy link

fwallz commented Sep 14, 2023

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
Copy link

larcho commented Sep 14, 2023

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
Copy link

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
Copy link

fwallz commented Sep 14, 2023

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
Copy link

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

@645148995
Copy link

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
Copy link

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'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests