luajpp2 编译问题解决

linker   ·   发表于 2个月前   ·   JVM

luajpp2 https://github.com/anonl/luajpp2

项目是一个跑在JVM上的Lua虚拟机实现,支持Lua字节码序列化和反序列化。

首先需要配置gradle代理在 ~/.gradle/gradle.properties

systemProp.http.proxyHost=127.0.0.1

systemProp.https.proxyHost=127.0.0.1

systemProp.https.proxyPort=1087

systemProp.http.proxyPort=1087

如果你的用的是ss,那么大概率是1087端口。

然后,需要修改 build.gradle文件的前半部分:

buildscript {
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
maven { url 'https://maven.oschina.net/content/groups/public/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url "https://maven.springframework.org/release" }
maven { url "https://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/" }
maven { url 'https://maven.fabric.io/public' }
jcenter()
google()
}
dependencies {
// Plugins for Android
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72'
}
}

plugins {
// Google error-prone
id 'net.ltgt.errorprone' version '2.0.1' apply false
}


然后就可以愉快的编译了。





0 Reply   |  Until 2个月前 | 24 View
LoginCan Publish Content