webyonet / react-native-android-location-services-dialog-box

React Native Android Location Services Dialog Box
MIT License
182 stars 50 forks source link

Execution failed for task ':react-native-android-location-services-dialog-box:compileDebugJavaWithJavac'. #74

Open sultan-arshi opened 5 years ago

sultan-arshi commented 5 years ago

I am getting error when I updated my react-native 0.57 to react-native 0.59.10

`node_modules/react-native-android-location-services-dialog-box/android/src/main/java/com/showlocationservicesdialogbox/LocationServicesDialogBoxModule.java:105: error: cannot find symbol

android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N ?

symbol: variable N location: class VERSION_CODES`

`/node_modules/react-native-android-location-services-dialog-box/android/src/main/java/com/showlocationservicesdialogbox/LocationServicesDialogBoxModule.java:106: error: cannot find symbol

Html.fromHtml(configMap.getString("message") Html.FROM_HTML_MODE_LEGACY) symbol: variable FROM_HTML_MODE_LEGACY location: class Html`

any suggestion?

chriteixeira commented 5 years ago

hI @sultan-arshi ,

I was having the same issues after updating a react-native project to 0.59.10 due to an older build-tools version. After updating the version in the build.gradle files, the issue was fixed. Maybe you're experiencing the same problem.

Malik-Usman17 commented 1 year ago

hey, @chriteixeira

can you please tell me the exact code which you changed in your build.gradle file, I am having the same issue.