当我尝试构建APK并使用flutter_true_time
时,会引发此错误
could not determine the dependencies of task ':app:compilereleasejavawithjavac'.
> could not resolve all task dependencies for configuration ':app:releasecompileclasspath'.
> could not find com.github.instacart.truetime-android:library-extension-rx:3.4.
required by:
project :app > tv.orale.truetime:true_time_release:1.0
该插件需要使用 AndroidX 迁移并将 compileSdkVersion 更改为 28。
所以我自己解决了这个问题,把它分叉到我的GitHub上,改变它所需要的,然后在pub.yaml中使用它。
任何人都可以添加这些行,它将起作用。
true_time:
git: https://github.com/ShadyBoshra2012/flutter_true_time.git
希望它对某人有所帮助。