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

App won't build with Java-11 #155

Open
jejb opened this issue Apr 25, 2023 · 0 comments
Open

App won't build with Java-11 #155

jejb opened this issue Apr 25, 2023 · 0 comments

Comments

@jejb
Copy link

jejb commented Apr 25, 2023

I recently got forced to upgrade to Java-11 because of Google requiring SDK 33 for all play store apps. The problem is that the annotations classes got unbundled from java-11 and now have to be specified as an external dependency. This was my fix for the problem, which I think would work (but can't test since the upgrade) for older Java versions as well, since it would override the internal annotation class:

diff --git a/app/build.gradle b/app/build.gradle
index 7cf306b..90f3f64 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -115,4 +115,6 @@ dependencies {
 
     // Sentry
     implementation 'io.sentry:sentry-android:5.7.1'
+
+    implementation 'javax.annotation:javax.annotation-api:1.3.2'
 }
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

1 participant