E:\Project\AndroidStudioProjects\FaceDetection\app\build.gradle: Error: json defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]   Explanation for issues of type "DuplicatePlatformClasses":   There are a number of libraries that duplicate not just functionality of   the Android platform but using the exact same class names as the ones   provided in Android -- for example the apache http classes. This can lead   to unexpected crashes.   To solve this, you need to either find a newer version of the library which   no longer has this problem, or to repackage the library (and all of its   dependencies) using something like the jarjar tool, or finally, rewriting   the code to use different APIs (for example, for http code, consider using   HttpUrlConnection or a library like okhttp).1 errors, 0 warnings:app:lintVitalRelease FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:lintVitalRelease'.> Lint found fatal errors while assembling a release target.    To proceed, either fix the issues identified by lint, or modify your build script as follows:  ...  android {      lintOptions {          checkReleaseBuilds false          // Or, if you prefer, you can continue to check for errors in release builds,          // but continue the build even when errors are found:          abortOnError false      }  }

 

 

   解决方法:build.gradle添加如下配置,参考各自项目jks文件细节:

 

signingConfigs {        config {            keyAlias 'key0'            keyPassword '123456'            storeFile file('E:/Project/AndroidStudioProjects/FaceDetection/fc.jks')            storePassword '123456'        }    }    lintOptions {        checkReleaseBuilds false        // Or, if you prefer, you can continue to check for errors in release builds,        // but continue the build even when errors are found:        abortOnError false    }

 

 

更多相关文章

  1. Android 打开文件管理器 获取文件的真实路径
  2. Android 文件上传参考
  3. android SD卡文件变化监控
  4. Android学习笔记(11)————Android的私人文件夹的文件读写操作
  5. android一种较为复杂的布局参考(xml文件)
  6. android读取工程里文件并显示在界面
  7. Android读取SD卡下面所有的TXT文件名 listView显示出来
  8. Android 读取本地txt文件和写入txt文件到本地
  9. android > SDcard读写文件

随机推荐

  1. Android学习札记48:将TextView中的指定文
  2. android 打开软键盘 关闭软键盘
  3. Android腾讯微博客户端开发四:微博发送篇
  4. Android(安卓)自动换行流式布局的RadioGr
  5. android典型代码系列(十)------获取一个
  6. Android中常用的函数
  7. Different ways to access HTTP resource
  8. android 图片点击一下就放大到全屏,再点
  9. android OS Service
  10. 捕获Android文本输入框的软键盘完成(Done