NavidShokoufeh / v2ray

v2ray client package for flutter
Other
54 stars 7 forks source link

error: package io.v2ray.core does not exist #4

Open vzdorrr opened 1 year ago

vzdorrr commented 1 year ago

Hello! Unfortunately I can`t run my project with your library

Launching lib/main.dart on sdk gphone64 arm64 in debug mode... /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:10: error: package io.v2ray.core does not exist import io.v2ray.core.V2Ray; ^ /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:11: error: package io.v2ray.core.common does not exist import io.v2ray.core.common.SerializedInstance; ^ /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:12: error: package io.v2ray.core.common does not exist import io.v2ray.core.common.V2RayException; ^ /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:14: error: package io.v2ray.core.transport does not exist import io.v2ray.core.transport.TransportProtocol; ^ /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:15: error: package io.v2ray.core.transport.internet does not exist import io.v2ray.core.transport.internet.DomainSocketAddress; ^ /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:16: error: package io.v2ray.core.transport.internet does not exist import io.v2ray.core.transport.internet.TcpTransportConfig; ^ /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:17: error: package io.v2ray.core.transport.internet does not exist import io.v2ray.core.transport.internet.TransportConfig; ^ /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:13: error: package io.v2ray.core.proxy.vmess does not exist import io.v2ray.core.proxy.vmess.*; ^ /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:47: error: cannot find symbol TransportConfig tcpConfig = TcpTransportConfig.newBuilder() ^ symbol: class TransportConfig location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:48: error: cannot find symbol .setTransportProtocol(TransportProtocol.TCP) ^ symbol: variable TransportProtocol location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:47: error: cannot find symbol TransportConfig tcpConfig = TcpTransportConfig.newBuilder() ^ symbol: variable TcpTransportConfig location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:51: error: cannot find symbol TransportConfig[] transportConfigs = { tcpConfig }; ^ symbol: class TransportConfig location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:54: error: cannot find symbol Account vmessAccount = Account.newBuilder() ^ symbol: class Account location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:54: error: cannot find symbol Account vmessAccount = Account.newBuilder() ^ symbol: variable Account location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:57: error: cannot find symbol .setSecuritySettings(SecurityConfig.getDefaultInstance()) ^ symbol: variable SecurityConfig location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:61: error: cannot find symbol OutboundHandler outboundHandler = new OutboundHandler( ^ symbol: class OutboundHandler location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:61: error: cannot find symbol OutboundHandler outboundHandler = new OutboundHandler( ^ symbol: class OutboundHandler location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:62: error: cannot find symbol new SerializedInstance<>(transportConfigs), ^ symbol: class SerializedInstance location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:67: error: cannot find symbol VMessProxyConfig vmessProxyConfig = VMessProxyConfig.newBuilder() ^ symbol: class VMessProxyConfig location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:67: error: cannot find symbol VMessProxyConfig vmessProxyConfig = VMessProxyConfig.newBuilder() ^ symbol: variable VMessProxyConfig location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:72: error: cannot find symbol ListenOptions listenOptions = ListenOptions.newBuilder() ^ symbol: class ListenOptions location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:72: error: cannot find symbol ListenOptions listenOptions = ListenOptions.newBuilder() ^ symbol: variable ListenOptions location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:73: error: cannot find symbol .addAddress(DomainSocketAddress.newBuilder() ^ symbol: variable DomainSocketAddress location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:80: error: cannot find symbol V2Ray.init(vmessProxyConfig, listenOptions); ^ symbol: variable V2Ray location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:81: error: cannot find symbol V2Ray.start(); ^ symbol: variable V2Ray location: class V2rayPlugin /Users/vzdorrr/.pub-cache/hosted/pub.dev/v2ray-0.0.1/android/src/main/java/com/example/v2ray/V2rayPlugin.java:85: error: cannot find symbol } catch (V2RayException e) { ^ symbol: class V2RayException location: class V2rayPlugin 26 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 11s Exception: Gradle task assembleDebug failed with exit code 1 Exited

SajadRahimi1 commented 1 year ago

this is my problem too. please considerate it

yunzhiheyi commented 1 year ago

v2ray aar does not exist?

NavidShokoufeh commented 1 year ago

Hi everyone , this plugin is under development and developers still cannot use it (it mentioned in readme). please consider it and be patient until release. Thanks in advance.

sina-moradbakhti commented 7 months ago

Hi @NavidShokoufeh , hope you're doing well. Perfect thanks for your endeavors regarding making the v2ray package.

Could you please let me know, is there any timeline for releasing the package, since we're ready to use your package in lots of applications ;)

Good Luck Buddy.