V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
codechaser
V2EX  ›  Android

请问有人碰打过 AndroidStudio 编译 Native 库,多个 so 中有一个被移除了吗?

  •  
  •   codechaser · 2022-10-09 22:55:59 +08:00 · 5350 次点击
    这是一个创建于 628 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在 Cmake 里写了多个add_library,但是有一个 so 在编译时可以看到生成了,但编译快结束时又莫名其妙被自动删除了,最后导致 CMake 报错:

    Expected output file at `libxxx.so` for target `xxx` but there was none
    

    百思不得其解

    1 条回复    2022-10-13 18:34:55 +08:00
    Helsing
        1
    Helsing  
       2022-10-13 18:34:55 +08:00 via iPhone
    检查一下 gradle 脚本
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2613 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 03:22 · PVG 11:22 · LAX 20:22 · JFK 23:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.