kezong / fat-aar-android

A gradle plugin that merge dependencies into the final aar file works with AGP 3.+
MIT License
3.15k stars 628 forks source link

Could not resolve all dependencies for configuration ':app:embed' #171

Open yuezhusust opened 4 years ago

yuezhusust commented 4 years ago

A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:embed'. Could not resolve project :path_provider_macos. Required by: project :app Project :app declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_macos. Could not resolve project :video_player_web. Required by: project :app Project :app declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :video_player_web. Could not resolve project :path_provider_linux. Required by: project :app Project :app declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_linux. Could not resolve project :url_launcher_macos. Required by: project :app Project :app declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :url_launcher_macos. Could not resolve project :shared_preferences_macos. Required by: project :app Project :app declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :shared_preferences_macos. Could not resolve project :shared_preferences_web. Required by: project :app Project :app declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :shared_preferences_web. Could not resolve project :url_launcher_web. Required by: project :app Project :app declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :url_launcher_web.

zhangzuofa commented 4 years ago

同样的问题 这个为什么

zhangzuofa commented 4 years ago

How do you solve it

NickTet commented 4 years ago

我也遇到了 咋个解决呢

qiaoyhh commented 4 years ago

同样的问题,我是因为cached_network_image库的影响,不知道怎么解决

13217300237 commented 3 years ago

看上去像是外部依赖包和这个embed不兼容?有大神知道怎么解决么

13217300237 commented 3 years ago

同样的问题,我是因为cached_network_image库的影响,不知道怎么解决

我刚刚解决,你进到本地磁盘看一下你这个库是不是没有android目录。 我这里很多web,linux,macos专用的flutter包,这些包内部并没有android文件夹,所以,打aar包的时候不识别它们,也是情理之中。

zhaiyunbin commented 3 years ago

同样的问题,我是因为cached_network_image库的影响,不知道怎么解决

我刚刚解决,你进到本地磁盘看一下你这个库是不是没有android目录。 我这里很多web,linux,macos专用的flutter包,这些包内部并没有android文件夹,所以,打aar包的时候不识别它们,也是情理之中。

确实是这个问题,打包的时候过滤一下那些包就可以了

qiaoyhh commented 3 years ago

同样的问题,我是因为cached_network_image库的影响,不知道怎么解决

我刚刚解决,你进到本地磁盘看一下你这个库是不是没有android目录。 我这里很多web,linux,macos专用的flutter包,这些包内部并没有android文件夹,所以,打aar包的时候不识别它们,也是情理之中。

确实是这个问题,打包的时候过滤一下那些包就可以了

过滤之后,运行就不正常了,请问你那怎么过滤的呀,方便贴下源码么,多谢老铁

zhaiyunbin commented 3 years ago

同样的问题,我是因为cached_network_image库的影响,不知道怎么解决

我刚刚解决,你进到本地磁盘看一下你这个库是不是没有android目录。 我这里很多web,linux,macos专用的flutter包,这些包内部并没有android文件夹,所以,打aar包的时候不识别它们,也是情理之中。

确实是这个问题,打包的时候过滤一下那些包就可以了

过滤之后,运行就不正常了,请问你那怎么过滤的呀,方便贴下源码么,多谢老铁

过滤其他平台的就好了啊 ,这些包和android 没啥关系 怎么会运行不正常 if(!name.toString().contains("path_provider_linux") && !name.toString().contains("shared_preferences_web") && !name.toString().contains("shared_preferences_macos") && !name.toString().contains("shared_preferences_windows") && !name.toString().contains("path_provider_windows") && !name.toString().contains("shared_preferences_linux") && !name.toString().contains("url_launcher_web")){ embed project(path: ":$name", configuration: 'default') }