美文网首页
2018-10-24

2018-10-24

作者: liang小昌 | 来源:发表于2018-10-24 14:35 被阅读0次

    android studio  突然报出 找不到 V4包 V7 recyclerview-v7 包

    Error:Could not resolve all files for configuration ':faceunity:debugCompileClasspath'.

    > Could not find recyclerview-v7.jar (com.android.support:recyclerview-v7:26.1.0).

      Searched in the following locations:

          https://jcenter.bintray.com/com/android/support/recyclerview-v7/26.1.0/recyclerview-v7-26.1.0.jar

    > Could not find support-v4.jar (com.android.support:support-v4:26.1.0).

      Searched in the following locations:

          https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar

    配置文件里把jcenter()放在maven仓库下,编译就成功了

    参考 :https://blog.csdn.net/u012673089/article/details/83307448

    重新 编译后又报出了 

        Error:Execution failed for task ':factory_distribution:javaPreCompileDebug'.

    > Annotation processors must be explicitly declared now.  The following dependencies on the compile classpath are found to contain annotation processor.  Please add them to the annotationProcessor configuration.

        - permissionsdispatcher-processor-3.1.0.jar (com.github.hotchemi.permissionsdispatcher:permissionsdispatcher-processor:3.1.0)

      Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior.  Note that this option is deprecated and will be removed in the future.

      See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.

    原因是将 jcenter() 放在 了mavenCentral()下面(如图)

    修改后就OK了

    相关文章

      网友评论

          本文标题:2018-10-24

          本文链接:https://www.haomeiwen.com/subject/jgzttqtx.html