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

Could not create task ':react-native-ssl-pinning:compileDebugJavaWithJavac' #199

Open
dipudk29 opened this issue Nov 21, 2023 · 0 comments

Comments

@dipudk29
Copy link

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-ssl-pinning@1.5.7 for the project I'm working on.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':tasks'.

Could not create task ':react-native-ssl-pinning:compileDebugJavaWithJavac'.
In order to compile Java 9+ source, please set compileSdkVersion to 30 or above

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-ssl-pinning/android/build.gradle b/node_modules/react-native-ssl-pinning/android/build.gradle
index efb23b8..478b45b 100644
--- a/node_modules/react-native-ssl-pinning/android/build.gradle
+++ b/node_modules/react-native-ssl-pinning/android/build.gradle
@@ -12,7 +12,7 @@ buildscript {
 apply plugin: 'com.android.library'
 
 android {
-    compileSdkVersion 28
+    compileSdkVersion 33
     buildToolsVersion "28.0.3"
 
     defaultConfig {
@@ -38,4 +38,3 @@ dependencies {
     implementation "com.squareup.okhttp3:logging-interceptor:4.9.0"
     implementation "com.squareup.okhttp3:okhttp-urlconnection:4.9.0"
 }
-  

This issue body was partially generated by patch-package.

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