NumberSlidingPicker无法与Android Java项目集成

时间:2019-03-02 06:32:19

标签: android build-error numberpicker

NumberSlidingPicker是一个轻量级的库,但是我无法集成到我的项目中

库链接:sephiroth74-NumberSliderPicker

集成时,在添加上述内容后,我在清单文件中添加"tools: replace=" android:appComponentFactory"时出现错误,我得到以下错误,

org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures.
at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:358)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)

添加了详细日志here

我这边有什么问题或解决办法吗?有什么建议吗?

1 个答案:

答案 0 :(得分:1)

如果您的targetSdkVersion低于28,则建议您降级您的库版本,这样可以解决此问题。