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

Unsupported Class File Version in uni_links Android Compilation #206

Closed
sauravcodexlancers opened this issue Apr 18, 2024 · 2 comments
Closed

Comments

@sauravcodexlancers
Copy link

Error Message:

Could not compile build file '/Users/imac/.pub-cache/hosted/pub.dev/uni_links-0.5.1/android/build.gradle'.
> startup failed:
  General error during conversion: Unsupported class file major version 63

** Description:**
The error indicates that the uni_links package is trying to compile a file (build.gradle) but encounters a problem due to an unsupported class file major version (version 63). This version is likely incompatible with the Java version expected by the Android build system.

Probable Cause:
The error suggests that the class files contained in the uni_links package are compiled using a Java version that is not supported by the Android build system.

Possible Solution:
Ensure that you're using a compatible version of Java, typically Java 8 (JDK 1.8), as the Android build system supports this version.

  1. Update your Java Development Kit (JDK) to version 8 or newer.
  2. Clean the Gradle cache by deleting the contents of the ~/.gradle/caches/ directory to remove any cached files that may be causing conflicts.
  3. Verify that you're using the latest version of the uni_links package, as updates may include fixes for compatibility issues.

Request for Package Update:
Additionally, if the issue persists after trying the above steps, consider reaching out to the package maintainer through GitHub's bug section. Request an update to the uni_links package to ensure compatibility with newer versions of Java and the Android build system.

@avioli
Copy link
Owner

avioli commented Apr 23, 2024

This package is now marked as discontinued and app_links recommended replacement.

@avioli avioli closed this as completed Apr 23, 2024
@sauravcodexlancers
Copy link
Author

sauravcodexlancers commented Apr 23, 2024 via email

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

2 participants