react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

Bugs in 4.0.0 FAILURE: Build failed with an exception.

Open rezq2009 opened this issue 3 years ago • 8 comments
trafficstars

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.

rezq2009 avatar Jul 05 '22 22:07 rezq2009

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

rezq2009 avatar Jul 05 '22 23:07 rezq2009

Fixed By Change :

compileSdkVersion => 31 buildToolsVersion => 31.0.0 targetSdkVersion => 31

rezq2009 avatar Jul 07 '22 16:07 rezq2009

Is there any solution to this problem without an upgrade compileSdkVersion ??

compileSdkVersion 30

rezq2009 avatar Jul 25 '22 13:07 rezq2009

Update on this? I have change the compleSdkVersion but still prompt by this error

jikseyres16 avatar Aug 17 '22 09:08 jikseyres16

Found this:

https://github.com/react-native-webrtc/react-native-incall-manager/releases/tag/4.0.0

This should be included in the documentation

jikseyres16 avatar Aug 17 '22 09:08 jikseyres16

same

Desintegrator avatar Sep 12 '22 10:09 Desintegrator

"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. `

liqiujiong avatar Oct 27 '22 10:10 liqiujiong

Fixed By Change :

compileSdkVersion => 31 buildToolsVersion => 31.0.0 targetSdkVersion => 31

thank , success compile

liqiujiong avatar Oct 27 '22 10:10 liqiujiong