aboozaid / react-native-tethering

A React Native module for working with Wi-Fi and Hotspot. Compatible with Expo.
https://react-native-tethering.onrender.com/
MIT License
17 stars 2 forks source link

error after install and build #14

Closed kozhinas closed 1 year ago

kozhinas commented 1 year ago

Unresolved reference: STATUS_NETWORK_SUGGESTIONS_ERROR_RESTRICTED_BY_ADMIN

aboozaid commented 1 year ago

Seems like you're using a device which has been restricted to suggest a WiFi Network by the device owner.

kozhinas commented 1 year ago

Seems like you're using a device which has been restricted to suggest a WiFi Network by the device owner.

this error appears on any physical devices and simulators, it happens during app build process, i can't even run it

aboozaid commented 1 year ago

Can you please provide which react-native version you use and your gradle version? Also include the full error here

kozhinas commented 1 year ago

Can you please provide which react-native version you use and your gradle version? Also include the full error here

1233 "react-native": "0.66.5", gradle:4.2.2

Unresolved reference: STATUS_NETWORK_SUGGESTIONS_ERROR_RESTRICTED_BY_ADMIN

aboozaid commented 1 year ago

you will need to upgrade your buildToolsVersion to 33.0.0 in order to build. this reference can be found in android api 33 and above.

kozhinas commented 1 year ago

you will need to upgrade your buildToolsVersion to 33.0.0 in order to build. this reference can be found in android api 33 and above.

apparently I will have to update gradle, as I try to do this, I will write about the results, since simply changing the version did not help me, it builds in the 30th version, can you tell me which version of the gradle do you use?

aboozaid commented 1 year ago

You can check the example in the package which uses gradle version 7.3.1

kozhinas commented 1 year ago

You can check the example in the package which uses gradle version 7.3.1

no, there are too many problems to update to the new version, many libraries have the old standard and need to be patched, your solution will not work for me unfortunately, thanks