codechaser
V2EX  ›  Android

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

  •  
  •   codechaser · Oct 9, 2022 · 12106 views
    This topic created in 1343 days ago, the information mentioned may be changed or developed.

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

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

    百思不得其解

    1 replies    2022-10-13 18:34:55 +08:00
    Helsing
        1
    Helsing  
       Oct 13, 2022 via iPhone
    检查一下 gradle 脚本
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2857 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 07:45 · PVG 15:45 · LAX 00:45 · JFK 03:45
    ♥ Do have faith in what you're doing.