accept-sdk-android icon indicating copy to clipboard operation
accept-sdk-android copied to clipboard

Can't Install SDK because JCenter has been shut down

Open kevinvangelder opened this issue 3 years ago • 7 comments

I am unable to build my project with implementation 'net.authorize:accept-sdk-android:1.0.2' because jcenter has been shut down and I get the error Could not find net.authorize:accept-sdk-android:1.0.2.. I need the SDK republished so that I can use it in my app that needs to go to review this weekend.

kevinvangelder avatar May 27 '22 00:05 kevinvangelder

I was able to clone the source code and build it. Through a process of convoluted steps I was able to use it locally instead. accept-sdk-android-debug.aar.zip

I followed these steps: https://stackoverflow.com/a/70074787/811307

I put the aar in a android/app/accept-sdk folder.

The one exception is instead of api project(':accept-sdk') I had to do:

implementation files('./accept-sdk/accept-sdk-android-debug.aar')

That's an acceptable temporary solution, but Authorize really needs to host the files with maven. It seems like there is already an empty placeholder here: https://mvnrepository.com/artifact/net.authorize/accept-sdk-android

kevinvangelder avatar May 27 '22 04:05 kevinvangelder

I tried this approach but I'm getting this error

Note: ../.pub-cache/git/authorize_net_plugin-617f88adb6c4d5251453427df2c7b049333f6df8/android/src/main/java/com/jparrack/authorize_net_plugin/AuthorizeNetPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':authorize_net_plugin:bundleDebugAar'.
> Error while evaluating property 'hasLocalAarDeps' of task ':authorize_net_plugin:bundleDebugAar'.
   > Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :authorize_net_plugin project caused this error: ../.pub-cache/git/authorize_net_plugin-617f88adb6c4d5251453427df2c7b049333f6df8/android/accept-sdk/accept-sdk-android-debug.aar

asadamatic avatar Sep 12 '24 06:09 asadamatic

I was able to resolve it using jitpack.

    repositories {
        maven { url "https://jitpack.io" }
    }

    dependencies {
        implementation 'com.github.AuthorizeNet:accept-sdk-android:1.04'
    }
    ```

asadamatic avatar Sep 20 '24 07:09 asadamatic

@asadamatic Is this a mistake? 1.04 not 1.0.4 or 1.0.2?

jaedag avatar Oct 04 '24 22:10 jaedag