Giter Site home page Giter Site logo

Comments (13)

2dust avatar 2dust commented on April 30, 2024 1

在V2RayVpnService 的onCreate 增加
Seq.setContext(applicationContext)

from v2rayng.

2dust avatar 2dust commented on April 30, 2024

https://github.com/2dust/v2rayNG/tree/master/AndroidLibV2rayLite

from v2rayng.

phoenixxie0 avatar phoenixxie0 commented on April 30, 2024

你好,使用https://github.com/2dust/AndroidLibV2rayLite 上的源代码编译出来的libv2ray.arr放入本项目后,编译成功,但是安装之后出现了一个疑问。具体是这样的,在设置里面的路由模式选择全局可以成功连接,但是选择其他的模式,就会报错,日志里显示是no correct JVM。请问这是什么原因呢?

from v2rayng.

foezzy avatar foezzy commented on April 30, 2024

你好,使用https://github.com/2dust/AndroidLibV2rayLite 上的源代码编译出来的libv2ray.arr放入本项目后,编译成功,但是安装之后出现了一个疑问。具体是这样的,在设置里面的路由模式选择全局可以成功连接,但是选择其他的模式,就会报错,日志里显示是no correct JVM。请问这是什么原因呢?

请问一下怎么编译出aar呢,还没解决,能具体说下吗

from v2rayng.

2dust avatar 2dust commented on April 30, 2024

https://github.com/2dust/AndroidLibV2rayLite/blob/master/.travis.yml

from v2rayng.

phoenixxie0 avatar phoenixxie0 commented on April 30, 2024

@2dust 按照这个编译成功之后,放入本项目相应位置编译成功,但是选择不是全局的路由模式就会无法连接。显示no correct JVM

from v2rayng.

2dust avatar 2dust commented on April 30, 2024

golang/go#33254

from v2rayng.

phoenixxie0 avatar phoenixxie0 commented on April 30, 2024

我是应该把Seq.setContext(getApplicationContext())加入到.java么?能不能说一下具体操作

from v2rayng.

2dust avatar 2dust commented on April 30, 2024

Seq.setContext(Context context). 增加在调用lib之前

from v2rayng.

phoenixxie0 avatar phoenixxie0 commented on April 30, 2024

@gam2046 搞定了吗?想参考一下
@2dust 是在V2RayVpnService.kt中的调用lib之前吗?还是在MainActivity.kt中的onCreate的地方呢?似乎还需要import go.Seq;
Seq.setContext(Context context).这个不知道怎么用,Java不精通。
我在MainActivity.kt中的onCreate增加了Seq.setContext(getApplicationContext()),无效。
似乎需要参考https://github.com/golang/go/issues/26815

from v2rayng.

phoenixxie0 avatar phoenixxie0 commented on April 30, 2024

@2dust 在在V2RayVpnService 的onCreate 增加 Seq.setContext(applicationContext)后

Task :app:compileDebugKotlin FAILED
e: /opt/src/v2rayNG/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt: (106, 9): Unresolved reference: Seq

from v2rayng.

2dust avatar 2dust commented on April 30, 2024

#88

from v2rayng.

mr-sarsarabi avatar mr-sarsarabi commented on April 30, 2024

For anyone wondering here about how to build that Libv2ray.aar Library, you can visit this answer on stack overflow for a shortcut.

from v2rayng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.