ammarahm-ed / react-native-scoped-storage

MIT License
58 stars 10 forks source link

Unable to run in Android. #43

Open gkasireddy202 opened 1 year ago

gkasireddy202 commented 1 year ago

Hi,

I updated my react-native project to minSdkVersion = 26 compileSdkVersion = 33 and targetSdkVersion = 33. I am getting the below error in Android. error: lambda expressions are not supported in -source 7 AsyncTask.execute(() -> { ^ (use -source 8 or higher to enable lambda expressions)

/node_modules/react-native-scoped-storage/android/src/main/java/com/ammarahmed/scopedstorage/RNScopedStorageModule.java:817

react-native-cli: 2.0.1 react-native: 0.68.7

kondziu95 commented 1 year ago

Hi, You can try to change "Source Compatibility" and "Target Compatibility" of module in Android Studio.

Project Structure -> Modules

gkasireddy202 commented 1 year ago

Hi,

Screenshot 2023-06-02 at 6 14 49 PM

I am having a JavaVersion.VERSION_1_8 for Source Compatibility and Target Compatibility of the module in Android Studio.

eakarpov commented 1 week ago

The same error for me with JAVA compat 1.8