解决targetSdkVersion版本过低安装失败,安装apk提示版本太低,targetsdkversion修改方法,操作方法:https://blog.csdn.net/a2831942318/article/details/121564997?spm=1001.2014.3001.5501
一、打包错误
AndroidManifest.xml:1: error: No resource identifier found for attribute 'compileSdkVersionCodename' in package 'android'
解决方法:在AndroidManifest.xml中删除'compileSdkVersionCodename相关的。
二、安装错误
adb install -r SystemActivities.apk
Performing Streamed Install
adb: failed to install SystemActivities.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1716187195.tmp/base.apk (at Binary XML file line #0): Requires newer sdk version #28 (current version is #27)]
解决方法:
用apkide打开后,找到 apktool.yml文件,将其中的sdk版本号降级