ccnnde / react-native-simple-openvpn

A simple react native module to interact with OpenVPN
GNU General Public License v2.0
150 stars 51 forks source link

Cannot import this package with rn 0.76.0 and jdk 17 #71

Open JeffreyZhu0201 opened 3 weeks ago

JeffreyZhu0201 commented 3 weeks ago

Bug description:

Cannot import this package with rn 0.76.0 and jdk 17

Environment:

after yarn android:

> Task :vpnLib:compileUiDebugJavaWithJavac FAILED
71 actionable tasks: 49 executed, 22 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\com\android\vending\billing\IInAppBillingService.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl10626258024024460075.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\com\android\vending\billing\IInAppBillingService.aidl

                                                   ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\com\android\vending\billing\IInAppBillingService.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl10626258024024460075.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\com\android\vending\billing\IInAppBillingService.aidl

       ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\com\android\vending\billing\IInAppBillingService.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl10626258024024460075.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\com\android\vending\billing\IInAppBillingService.aidl

                                                                                ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\ExternalCertificateProvider.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl10552202333704445814.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\ExternalCertificateProvider.aidl

                                                   ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\ExternalCertificateProvider.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl10552202333704445814.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\ExternalCertificateProvider.aidl

       ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\ExternalCertificateProvider.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl10552202333704445814.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\ExternalCertificateProvider.aidl

                                                                                ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\IOpenVPNAPIService.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl13496521589772126316.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\IOpenVPNAPIService.aidl

                                                   ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\IOpenVPNAPIService.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl13496521589772126316.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\IOpenVPNAPIService.aidl

       ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\IOpenVPNAPIService.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl13496521589772126316.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\IOpenVPNAPIService.aidl

                                                                                ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\IOpenVPNStatusCallback.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl17660988899180612330.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\IOpenVPNStatusCallback.aidl

                                                   ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\IOpenVPNStatusCallback.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl17660988899180612330.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\IOpenVPNStatusCallback.aidl

       ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\api\IOpenVPNStatusCallback.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl17660988899180612330.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\api\IOpenVPNStatusCallback.aidl

                                                                                ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\core\IOpenVPNServiceInternal.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl8874941485075247091.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\core\IOpenVPNServiceInternal.aidl

                                                   ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\core\IOpenVPNServiceInternal.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl8874941485075247091.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\core\IOpenVPNServiceInternal.aidl

       ^
D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\de\blinkt\openvpn\core\IOpenVPNServiceInternal.java:3: ����: �Ƿ��� Unicode ת��
 * Using: C:\Users\JeffreyZhu\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\JeffreyZhu\AppData\Local\Android\Sdk\platforms\android-35\framework.aidl -oD:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\ui\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\debug\aidl -ID:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\uiDebug\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\0cae9777d78a11e62cca32e1297ef73a\transformed\core-1.6.0\aidl -IC:\Users\JeffreyZhu\.gradle\caches\8.10.2\transforms\676456ad6d15bcb3fc262052291325ad\transformed\versionedparcelable-1.1.1\aidl -dC:\Users\JEFFRE~1\AppData\Local\Temp\aidl8874941485075247091.d D:\CODE\Github\RN\AwesomeProject\node_modules\react-native-simple-openvpn\vpnLib\src\main\aidl\de\blinkt\openvpn\core\IOpenVPNServiceInternal.aidl
JeffreyZhu0201 commented 3 weeks ago

i cant use react-native link on 0.76

ccnnde commented 3 weeks ago

This issue does not exist on macOS. I will test it on Windows 10 later to see.

ccnnde commented 2 weeks ago

The issue has been reproduced in Windows 10

First, the output error contains garbled characters. You need to set the language to English in android\gradle.properties

-org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
+org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -Duser.language=en -Duser.country=US

Then, re-run the build, and you will see the following error: illegal unicode escape

> Task :vpnLib:compileUiDebugJavaWithJavac FAILED
56 actionable tasks: 6 executed, 50 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

D:\XXX\node_modules\react-native-simple-openvpn\vpnLib\build\generated\aidl_source_output_dir\uiDebug\out\com\android\vending\billing\IInAppBillingService.java:3: error: illegal unicode escape
 * Using: C:\Users\xxx\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe...

Next, open the location of the error, you will see the following content

/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Using: C:\Users\xxx\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe...
 */
package com.android.vending.billing;
// ...

It is this path Using: C:\Users\xxx\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe... that caused the build failure

Please modify android\build.gradle for a temporary solution, then the automatically generated comments will not include that path

buildscript {
    ext {
-       buildToolsVersion = "35.0.0"
+       buildToolsVersion = "34.0.0"
        minSdkVersion = 24
        compileSdkVersion = 35
        targetSdkVersion = 34
        ndkVersion = "26.1.10909125"
        kotlinVersion = "1.9.24"
    }
}