react-native-webrtc / react-native-incall-manager

Handling media-routes/sensors/events during a audio/video chat on React Native
ISC License
547 stars 191 forks source link

Library compile issue (Android) #234

Open ghnsharma opened 9 months ago

ghnsharma commented 9 months ago

error: InCallProximityManager.java:51: error: lambda expressions are not supported in -source 7 UiThreadUtil.runOnUiThread(() -> { ^ (use -source 8 or higher to enable lambda expressions)

FAILURE: Build failed with an exception.

I am getting this when trying to build the app on my android device. Any solutions?

dinhduongson commented 8 months ago

Me too

fukemy commented 7 months ago

use JAVA > 1.8

viniciusmolina12 commented 6 months ago

Did you fix it?

LongThV commented 5 months ago

use JAVA > 1.8

I updated to java 11 but it still doesn't work

fukemy commented 5 months ago

use JAVA > 1.8

I updated to java 11 but it still doesn't work

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

add it into build.gradle app, inside android blockquote