react-native-incall-manager
react-native-incall-manager copied to clipboard
Bugs in 4.0.0 FAILURE: Build failed with an exception.
Note: Recompile with -Xlint:deprecation for details. ..../node_modules/react-native-incall-manager/android/src/main/java/com/zxcpoiu/incallmanager/AppRTC/AppRTCBluetoothManager.java:224: error: cannot find symbol String p = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? android.Manifest.permission.BLUETOOTH_CONNECT : android.Manifest.permission.BLUETOOTH; ^ symbol: variable S location: class VERSION_CODES ..../node_modules/react-native-incall-manager/android/src/main/java/com/zxcpoiu/incallmanager/AppRTC/AppRTCBluetoothManager.java:224: error: cannot find symbol String p = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? android.Manifest.permission.BLUETOOTH_CONNECT : android.Manifest.permission.BLUETOOTH; ^ symbol: variable BLUETOOTH_CONNECT location: class permission Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: ....//node_modules/react-native-incall-manager/android/src/main/java/com/zxcpoiu/incallmanager/InCallManagerModule.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors
FAILURE: Build failed with an exception.
node_modules/react-native-incall-manager/android/src/main/java/com/zxcpoiu/incallmanager/AppRTC/AppRTCBluetoothManager.java:224: error: cannot find symbol String p = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? android.Manifest.permission.BLUETOOTH_CONNECT : android.Manifest.permission.BLUETOOTH; ^ symbol: variable S location: class VERSION_CODES
node_modules/react-native-incall-manager/android/src/main/java/com/zxcpoiu/incallmanager/AppRTC/AppRTCBluetoothManager.java:224: error: cannot find symbol String p = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? android.Manifest.permission.BLUETOOTH_CONNECT : android.Manifest.permission.BLUETOOTH; ^ symbol: variable BLUETOOTH_CONNECT location: class permission
Fixed By Change :
compileSdkVersion => 31 buildToolsVersion => 31.0.0 targetSdkVersion => 31
Is there any solution to this problem without an upgrade compileSdkVersion ??
compileSdkVersion 30
Update on this? I have change the compleSdkVersion but still prompt by this error
Found this:
https://github.com/react-native-webrtc/react-native-incall-manager/releases/tag/4.0.0
This should be included in the documentation
same
"react-native-incall-manager": "^4.0.0", had same problem
`Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 Warning: �����Ԫ�� (uri:"", local:"base-extension")������Ԫ��Ϊ<{}codename>,<{}layoutlib>,<{}api-level> A:\Code\UI\chatroom\node_modules\react-native-incall-manager\android\src\main\java\com\zxcpoiu\incallmanager\AppRTC\AppRTCBluetoothManager.java:224: ����: �Ҳ������� String p = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? android.Manifest.permission.BLUETOOTH_CONNECT : android.Manifest.permission.BLUETOOTH; ^ ����: ���� S λ��: �� VERSION_CODES A:\Code\UI\chatroom\node_modules\react-native-incall-manager\android\src\main\java\com\zxcpoiu\incallmanager\AppRTC\AppRTCBluetoothManager.java:224: ����: �Ҳ������� String p = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? android.Manifest.permission.BLUETOOTH_CONNECT : android.Manifest.permission.BLUETOOTH; ^ ����: ���� BLUETOOTH_CONNECT λ��: �� permission ע: ijЩ�����ļ�ʹ�û����ѹ�ʱ�� API�� ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣 ע: A:\Code\UI\chatroom\node_modules\react-native-incall-manager\android\src\main\java\com\zxcpoiu\incallmanager\InCallManagerModule.javaʹ����δ������ȫ�IJ����� ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:unchecked ���±��롣 2 ������
FAILURE: Build failed with an exception. `
Fixed By Change :
compileSdkVersion => 31 buildToolsVersion => 31.0.0 targetSdkVersion => 31
thank , success compile