Android Studio Error:The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

原因

因为我在项目中接入了微信分享的sdk,导致在编译时报错,大概意思是minSdkVersion和targetSdkVersion不应该在manifest.xml文件中声明,可以移动到build.gradle文件中的默认的config

解决方案

解决方法就是把manifest.xml文件中的minSdkVersion和targetSdkVersion注释掉,重新编译即可
Android Studio Error:The minSdk version should not be declared in the android manifest file.

相关文章:

  • 2022-02-10
  • 2021-08-30
  • 2021-05-11
  • 2021-07-08
  • 2021-10-22
  • 2022-01-08
  • 2021-04-13
  • 2022-12-23
猜你喜欢
  • 2021-08-10
  • 2021-10-12
  • 2021-06-18
  • 2021-12-08
  • 2021-06-21
  • 2021-08-29
  • 2021-06-30
相关资源
相似解决方案