Giter VIP home page Giter VIP logo

Comments (6)

MegatronKing avatar MegatronKing commented on May 24, 2024 1

你可以参考sample中maven依赖的方式,将你的自定义算法作为maven依赖进去,这样代码就是一份。
如果想在原项目中集成源码,比较难,因为涉及到编译和运行两个环节,我没有找到gradle编译环节引用到app中的源码的方式。

from stringfog.

oneLZH avatar oneLZH commented on May 24, 2024

@MegatronKing buildSrc(即 Groovy 类型插件)应该是只能使用 java/ java-library 类型的 lib,而我的加密库是 android-library 类型,依赖之后无法使用里面的任何类。
如果将其转成 java/ java-library 类型,则 so 库会因为存放位置不对,编译时会出现错误 no in xxx java.library.path ,要想使用,只能将 so 存放在对应的环境位置,而其他人想使用的话也必须拷贝到对应的环境位置,这样操作起来太麻烦了;我应该怎么做?有什么好的思路吗?求指点~

from stringfog.

oneLZH avatar oneLZH commented on May 24, 2024

换句话说如何才能在 buildSrc module 中使用 so 库呢,困惑了 2 天,没有解决这个问题,期望得到回复!!!

from stringfog.

oneLZH avatar oneLZH commented on May 24, 2024

已解决,问题关闭

from stringfog.

BCsl avatar BCsl commented on May 24, 2024

@oneLZH 同样的疑问,请问是怎么解决的?

from stringfog.

oneLZH avatar oneLZH commented on May 24, 2024

@oneLZH 同样的疑问,请问是怎么解决的?

将 JNI 生成 So,buildSrc 一份,app 一份,需要注意的是 buildSrc 是以编译环境为主的,环境不一格式也不一样

from stringfog.

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.