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

Invalid package reference #364

Open
asadqazi opened this issue Jul 11, 2024 · 4 comments
Open

Invalid package reference #364

asadqazi opened this issue Jul 11, 2024 · 4 comments

Comments

@asadqazi
Copy link

Facing following isssue with bouncy castle in Android Studio Koala. Working fine on Android Studio Hedge Hog.

Invalid package reference in org.bouncycastle:bcpkix-jdk15on; not included in Android: javax.naming.directory. Referenced from org.bouncycastle.cert.dane.fetcher.JndiDANEFetcherFactory.

Gradle version:
7.4.2

@wolpi
Copy link
Owner

wolpi commented Jul 14, 2024

Interesting to hear. Might affect me in future. As you can see in multiple places of code and configuration this app uses rather old versions of tools. That is because there are issues with latest versions ...

@asadqazi
Copy link
Author

is there any way or hack to get it fixed?

@wolpi
Copy link
Owner

wolpi commented Jul 20, 2024

This is the verion I currently use:

Android Studio Electric Eel | 2022.1.1

Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

I'm in no hurry to update. Especially as I have to expect issues ...

Contributions are welcome 😉

@hamidsafdari
Copy link
Contributor

I can run the project with the latest version of Android Studio (). Also, the project uses Gradle v6.9.1. I would personally advise against using a newer version when you're trying to build a project for the first time.

The only thing I had to do was to set the Gradle JDK version to 11. That's in "Settings > Build, Execution, Deployment > Build Tools > Gradle":

image

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

3 participants