Skip to content
Advertisement

Failed to install cryptography in Android Studio using Chaquopy

I want to use camelot-py in Android Studio using Chaquopy.
But during installation of camelot-py, Gradle is unable to install cryptography

Chaquopy version : 12.0.1
Android Gradle Plugin Version : 7.2.2
minSDK : 21

build.gradle (top-level):

JavaScript

build.gradle (module-level):

JavaScript

settings.gradle:

JavaScript

Build Output:

JavaScript

If anyone has any solution for this, plz help…

Advertisement

Answer

Chaquopy doesn’t currently provide such a new version of cryptography, but you can work around this by requesting a slightly older version of pdfminer.six:

JavaScript

This version of pdfminer.six doesn’t declare any minimum version of cryptography, so the install will complete successfully. However it probably still has an minimum requirement even if it’s not declared, so if you get any runtime errors suggesting an incompatibility between the two packages, try reducing the pdfminer.six version even further, if necessary all the way back to camelot-py‘s minimum requirement of 20200726.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement