wkt / YoloMobile

A Android Library for YOLOv5/YOLOv7/YOLOv8 Detection and Pose Inference Based on NCNN
Other
42 stars 11 forks source link

不能aar加载吗? #10

Open jing1007209484 opened 3 months ago

jing1007209484 commented 3 months ago

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

wkt commented 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导致的

ice6 commented 2 months ago

可以加载,我用的最新的android studio,并确保下载的aar文件没问题,可以sha256sum看下。