Open jing1007209484 opened 3 months ago
可以加载aar的
https://github.com/wkt/YoloMobile/blob/main/app/build.gradle implementation files('libs/yolo_mobile_release_20230916_v1.0.2r3.aar')
项目里就有相关的代码示例 你遇到的问题,可能是android studio导致的
可以加载,我用的最新的android studio,并确保下载的aar文件没问题,可以sha256sum看下。
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :av_Plug:yolo project caused this error: E:\Android\Freely-0514\Freely\av_Plug\yolo\libs\yolo_mobile_release_20230916_v1.0.2r3.aar