码迷,mamicode.com
首页 > 移动开发 > 详细

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/camera/core/CameraFactory

时间:2020-11-17 12:38:11      阅读:24      评论:0      收藏:0      [点我收藏+]

标签:dir   问题:   evel   include   cto   span   use   lifecycle   get   

问题:

升级新版flutter遇到android运行报错,如下图

技术图片

 

 

 解决方案:

技术图片

 

 

dependencies {
  // CameraX core library using the camera2 implementation
  def camerax_version = "1.0.0-beta11"
  // The following line is optional, as the core library is included indirectly by camera-camera2
  implementation "androidx.camera:camera-core:${camerax_version}"
  implementation "androidx.camera:camera-camera2:${camerax_version}"
  // If you want to additionally use the CameraX Lifecycle library
  implementation "androidx.camera:camera-lifecycle:${camerax_version}"
  // If you want to additionally use the CameraX View class
  implementation "androidx.camera:camera-view:1.0.0-alpha18"
  // If you want to additionally use the CameraX Extensions library
  implementation "androidx.camera:camera-extensions:1.0.0-alpha18"
}

 

参考链接:https://developer.android.com/jetpack/androidx/releases/camera

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/camera/core/CameraFactory

标签:dir   问题:   evel   include   cto   span   use   lifecycle   get   

原文地址:https://www.cnblogs.com/lulushen/p/13960670.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!