ccnnde / react-native-simple-openvpn

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

Task :vpnLib:compileUiDebugAidl FAILED #50

Open Amoyens1s opened 1 year ago

Amoyens1s commented 1 year ago

Bug description: Task :vpnLib:compileUiDebugAidl FAILED

To Reproduce: yarn add react-native-simple-openvpn add config to setting.gradle, and then run yarn android got this error

Screenshots/Videos: image

Environment:

xiaozhang0532 commented 1 year ago

+1

xiaozhang0532 commented 1 year ago

@Amoyens1s do you find out the issues?

Amoyens1s commented 1 year ago

@Amoyens1s do you find out the issues?

nope, still got this.

Intarial commented 1 year ago

@Amoyens1s, have you not bypassed this error yet? Maybe you replaced the library or what did you do?

ccnnde commented 1 year ago

I cannot reproduce the issue on my Mac

samovolkin-ms commented 1 year ago

This issue happened on Windows while on Mac it works fine without failures.

For me, downgrading buildToolsVersion from 33.0.0 to 22.1.4 worked. Go to android/build.gradle – you'll see buildToolsVersion there.

Although, I'm not sure if it's the best solution but at least it runs now. Probably downgrading to other versions will work too.

umeraziz619 commented 1 year ago

thanks works

LynxSumit commented 8 months ago

not worked for me .. can you specify which versions to downgrade ??????

JoshMerlino commented 8 months ago

Add this to your main build.gradle No need to downgrade packages

buildscript {
// ...
    ext {
        // ...
        kotlinVersion = findProperty('android.kotlinVersion') ?: '1.8.10'

    }

    dependencies {
        // ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
    }
}
LynxSumit commented 8 months ago

Add this to your main build.gradle No need to downgrade packages

buildscript {
// ...
    ext {
        // ...
        kotlinVersion = findProperty('android.kotlinVersion') ?: '1.8.10'

    }

    dependencies {
        // ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
    }
}

with expo ?

JoshMerlino commented 8 months ago

Add this to your main build.gradle No need to downgrade packages

buildscript {
// ...
    ext {
        // ...
        kotlinVersion = findProperty('android.kotlinVersion') ?: '1.8.10'

    }

    dependencies {
        // ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
    }
}

with expo ?

Yes

LynxSumit commented 8 months ago

In last build failed with this error :

Execution failed for task ':vpnLib:compileUiDebugKotlin'.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
JoshMerlino commented 8 months ago

In last build failed with this error :

Execution failed for task ':vpnLib:compileUiDebugKotlin'.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

Already looking into this. It builds fine on both my windows and linux machines, but fails with that error on EAS.

I got some more specific info about whats failing on EAS

Task :vpnLib:compileUiDebugKotlin FAILED
e: file:///home/expo/workingdir/build/node_modules/react-native-simple-openvpn/vpnLib/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt:38:9 'when' expression must be exhaustive, add necessary 'null' branch or 'else' branch instead

Possibly mismatching versions of Kotlin? (im brand new to native dev btw)

ShadowEmperorYT commented 4 months ago

Anyone got any fix for this i am getting this error

> Task :vpnLib:compileUiDebugJavaWithJavac

> Task :vpnLib:compileUiDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
43 actionable tasks: 5 executed, 38 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:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\activities\DisconnectVPN.java:20: error: cannot find symbol
import de.blinkt.openvpn.core.IOpenVPNServiceInternal;
                             ^
  symbol:   class IOpenVPNServiceInternal
  location: package de.blinkt.openvpn.core
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\activities\DisconnectVPN.java:29: error: cannot find symbol
    private IOpenVPNServiceInternal mService;
            ^
  symbol:   class IOpenVPNServiceInternal
  location: class DisconnectVPN
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ConfirmDialog.java:40: error: cannot find symbol
import de.blinkt.openvpn.core.IOpenVPNServiceInternal;
                             ^
  symbol:   class IOpenVPNServiceInternal
  location: package de.blinkt.openvpn.core
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ConfirmDialog.java:58: error: cannot find symbol
    private IOpenVPNServiceInternal mService;
            ^
  symbol:   class IOpenVPNServiceInternal
  location: class ConfirmDialog
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:42: error: cannot find symbol
import de.blinkt.openvpn.core.IOpenVPNServiceInternal;
                             ^
  symbol:   class IOpenVPNServiceInternal
  location: package de.blinkt.openvpn.core
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:56: error: cannot find symbol
    final RemoteCallbackList<IOpenVPNStatusCallback> mCallbacks =
                             ^
  symbol:   class IOpenVPNStatusCallback
  location: class ExternalOpenVPNService
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:59: error: cannot find symbol
    private IOpenVPNServiceInternal mService;
            ^
  symbol:   class IOpenVPNServiceInternal
  location: class ExternalOpenVPNService
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:116: error: package IOpenVPNAPIService does not exist
    private final IOpenVPNAPIService.Stub mBinder = new IOpenVPNAPIService.Stub() {
                                    ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:408: error: cannot find symbol
        private void sendUpdate(IOpenVPNStatusCallback broadcastItem,
                                ^
  symbol:   class IOpenVPNStatusCallback
  location: class OpenVPNServiceHandler
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\RemoteAction.java:20: error: cannot find symbol
import de.blinkt.openvpn.core.IOpenVPNServiceInternal;
                             ^
  symbol:   class IOpenVPNServiceInternal
  location: package de.blinkt.openvpn.core
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\RemoteAction.java:29: error: cannot find symbol
    private IOpenVPNServiceInternal mService;
            ^
  symbol:   class IOpenVPNServiceInternal
  location: class RemoteAction
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:22: error: cannot find symbol
import de.blinkt.openvpn.api.ExternalCertificateProvider;
                            ^
  symbol:   class ExternalCertificateProvider
  location: package de.blinkt.openvpn.api
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:248: error: cannot find symbol
        private final ExternalCertificateProvider service;
                      ^
  symbol:   class ExternalCertificateProvider
  location: class ExternalAuthProviderConnection
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:252: error: cannot find symbol
                                                 ExternalCertificateProvider service) {
                                                 ^
  symbol:   class ExternalCertificateProvider
  location: class ExternalAuthProviderConnection
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:263: error: cannot find symbol
        public ExternalCertificateProvider getService() {
               ^
  symbol:   class ExternalCertificateProvider
  location: class ExternalAuthProviderConnection
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\StatusListener.java:31: error: cannot find symbol
    private final IStatusCallbacks mCallback = new IStatusCallbacks.Stub() {
                  ^
  symbol:   class IStatusCallbacks
  location: class StatusListener
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:69: error: cannot find symbol
public class OpenVPNService extends VpnService implements StateListener, Callback, ByteCountListener, IOpenVPNServiceInternal {
                                                                                                      ^
  symbol: class IOpenVPNServiceInternal
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:37: error: cannot find symbol
    static final RemoteCallbackList<IStatusCallbacks> mCallbacks =
                                    ^
  symbol:   class IStatusCallbacks
  location: class OpenVPNStatusService
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:61: error: package IServiceStatus does not exist
    private static final IServiceStatus.Stub mBinder = new IServiceStatus.Stub() {
                                       ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:231: error: cannot find symbol
    private static void sendUpdate(IStatusCallbacks broadcastItem,
                                   ^
  symbol:   class IStatusCallbacks
  location: class OpenVPNStatusService
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\LaunchVPN.java:38: error: cannot find symbol
import de.blinkt.openvpn.core.IServiceStatus;
                             ^
  symbol:   class IServiceStatus
  location: package de.blinkt.openvpn.core
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\activities\DisconnectVPN.java:38: error: package IOpenVPNServiceInternal does not exist
            mService = IOpenVPNServiceInternal.Stub.asInterface(service);
                                              ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ConfirmDialog.java:63: error: package IOpenVPNServiceInternal does not exist
            mService = IOpenVPNServiceInternal.Stub.asInterface(service);
                                              ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:70: error: cannot find symbol
            mService = (IOpenVPNServiceInternal) (service);
                        ^
  symbol: class IOpenVPNServiceInternal
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:116: error: package IOpenVPNAPIService does not exist
    private final IOpenVPNAPIService.Stub mBinder = new IOpenVPNAPIService.Stub() {
                                                                          ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:278: error: cannot find symbol
        public void registerStatusCallback(IOpenVPNStatusCallback cb)
                                           ^
  symbol: class IOpenVPNStatusCallback
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:292: error: cannot find symbol
        public void unregisterStatusCallback(IOpenVPNStatusCallback cb)
                                             ^
  symbol: class IOpenVPNStatusCallback
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:118: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:156: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:167: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:199: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:204: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:210: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:235: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:243: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:256: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:266: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:277: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:291: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:300: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:307: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:314: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\ExternalOpenVPNService.java:384: error: cannot find symbol
            RemoteCallbackList<IOpenVPNStatusCallback> callbacks;
                               ^
  symbol:   class IOpenVPNStatusCallback
  location: class OpenVPNServiceHandler
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\api\RemoteAction.java:35: error: package IOpenVPNServiceInternal does not exist
            mService = IOpenVPNServiceInternal.Stub.asInterface(service);
                                              ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:120: error: cannot find symbol
            ExternalCertificateProvider externalAuthProvider = authProviderConnection.getService();
            ^
  symbol:   class ExternalCertificateProvider
  location: class ExtAuthHelper
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:142: error: cannot find symbol
            ExternalCertificateProvider externalAuthProvider = authProviderConnection.getService();
            ^
  symbol:   class ExternalCertificateProvider
  location: class ExtAuthHelper
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:160: error: cannot find symbol
            ExternalCertificateProvider externalAuthProvider = authProviderConnection.getService();
            ^
  symbol:   class ExternalCertificateProvider
  location: class ExtAuthHelper
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:196: error: cannot find symbol
        final BlockingQueue<ExternalCertificateProvider> q = new LinkedBlockingQueue<>(1);
                            ^
  symbol:   class ExternalCertificateProvider
  location: class ExtAuthHelper
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\ExtAuthHelper.java:205: error: package ExternalCertificateProvider does not exist
                        q.put(ExternalCertificateProvider.Stub.asInterface(service));
                                                         ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\StatusListener.java:31: error: package IStatusCallbacks does not exist
    private final IStatusCallbacks mCallback = new IStatusCallbacks.Stub() {
                                                                   ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\StatusListener.java:32: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\StatusListener.java:37: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\StatusListener.java:43: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\StatusListener.java:48: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\StatusListener.java:60: error: cannot find symbol
            IServiceStatus serviceStatus = IServiceStatus.Stub.asInterface(service);
            ^
  symbol: class IServiceStatus
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\StatusListener.java:60: error: package IServiceStatus does not exist
            IServiceStatus serviceStatus = IServiceStatus.Stub.asInterface(service);
                                                         ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:105: error: package IOpenVPNServiceInternal does not exist
    private final IBinder mBinder = new IOpenVPNServiceInternal.Stub() {
                                                               ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:107: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:112: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:117: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:122: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:127: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:133: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:192: error: method does not override or implement a method from a supertype
    @Override
    ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:198: error: method does not override or implement a method from a supertype
    @Override
    ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:204: error: method does not override or implement a method from a supertype
    @Override
    ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:504: error: method does not override or implement a method from a supertype
    @Override
    ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:732: error: method does not override or implement a method from a supertype
    @Override
    ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:61: error: package IServiceStatus does not exist
    private static final IServiceStatus.Stub mBinder = new IServiceStatus.Stub() {
                                                                         ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:64: error: cannot find symbol
        public ParcelFileDescriptor registerStatusCallback(IStatusCallbacks cb) throws RemoteException {
                                                           ^
  symbol: class IStatusCallbacks
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:112: error: cannot find symbol
        public void unregisterStatusCallback(IStatusCallbacks cb) throws RemoteException {
                                             ^
  symbol: class IStatusCallbacks
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:63: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:111: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:116: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:121: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:126: error: method does not override or implement a method from a supertype
        @Override
        ^
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:195: error: cannot find symbol
            RemoteCallbackList<IStatusCallbacks> callbacks;
                               ^
  symbol:   class IStatusCallbacks
  location: class OpenVPNStatusHandler
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\core\OpenVPNStatusService.java:204: error: cannot find symbol
                    IStatusCallbacks broadcastItem = callbacks.getBroadcastItem(i);
                    ^
  symbol:   class IStatusCallbacks
  location: class OpenVPNStatusHandler
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\LaunchVPN.java:99: error: cannot find symbol
            IServiceStatus service = IServiceStatus.Stub.asInterface(binder);
            ^
  symbol: class IServiceStatus
D:\Softwares\Proj\Venom\node_modules\react-native-simple-openvpn\vpnLib\src\main\java\de\blinkt\openvpn\LaunchVPN.java:99: error: package IServiceStatus does not exist
            IServiceStatus service = IServiceStatus.Stub.asInterface(binder);
                                                   ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
80 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':vpnLib:compileUiDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.

BUILD FAILED in 9s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
ShadowEmperorYT commented 4 months ago

@ccnnde please fix this. This is an error with windows i think

caferyukseloglu commented 1 month ago

The iss persist here also https://github.com/ccnnde/react-native-simple-openvpn/issues/64

leofmarciano commented 1 month ago

+1

SvetoslavKolpakov commented 4 weeks ago

Hello! Yes, you need to add the line in the gradle.build file in the VpnLib folder:

android {
    //...
    buildFeatures {
        aidl = true
    }
}

Then the error with aidl goes away. But now the problem is that it does not see the R class.

 error: cannot find symbol
      if (vpnProfile.checkProfile(reactContext) != R.string.no_error_found) {
                                                    ^
  symbol:   variable string
  location: class R

OS: Linux mint react-native version:0.74.3 react-native-simple-openvpn version:2.1.1

SvetoslavKolpakov commented 4 weeks ago

Now I have solved the problem with the R class too. To do this, you need to add this line to the /node_modules/react-native-simple-openvpn/android/src/main/java/com/norcod/rnovpn/RNSimpleOpenvpnModule.java file:

import de.blinkt.openvpn.R;

Only now the application abruptly closes when trying to connect to openvpn. At the same time, it does not output any logs. Here is an example of the code. code