Unable to resolve target 'android-i'

简介:  导入旧版本的安卓开发程序时,会提示 Unable to resolve target 'android-i'  错误,而且有些文件会提示import java.* cannot resolved,这是旧版本的安卓sdk和现在的的不一致造成的。 方法是:修改工程project.properties中的target=17改为当前版本,如target=18即可 如何查看当前sdk版

 导入旧版本的安卓开发程序时,会提示

Unable to resolve target 'android-i'

 错误,而且有些文件会提示import java.* cannot resolved,这是旧版本的安卓sdk和现在的的不一致造成的。

方法是:修改工程project.properties中的target=17改为当前版本,如target=18即可

如何查看当前sdk版本:

进入sdk\tools点击android.bat查看即可。

目录
相关文章
|
6月前
|
安全 开发工具 Android开发
几个Flutter常见诊断错误与解决Android toolchain - develop for Android devices X Unable to locate Android SDK
几个Flutter常见诊断错误与解决Android toolchain - develop for Android devices X Unable to locate Android SDK
1954 0
|
3月前
|
Java Android开发
解决Android编译报错:Unable to make field private final java.lang.String java.io.File.path accessible
解决Android编译报错:Unable to make field private final java.lang.String java.io.File.path accessible
504 1
|
Android开发 Java
Android Studio 解决 Error:Unable to start the daemon process.
异常 Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon.
2650 0
|
5月前
|
开发工具 Android开发 Windows
Android Studio安装Unable to access Android SDK add-on list处理方法
Android Studio安装Unable to access Android SDK add-on list处理方法
192 0
|
6月前
|
Android开发
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.suppor
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.suppor
43 1
|
11月前
|
网络协议 Android开发 虚拟化
Android Studio无法运行程序调试程序出现Unable to connect to ADB.Check the Event Log for possible issues.Verify th
Android Studio无法运行程序调试程序出现Unable to connect to ADB.Check the Event Log for possible issues.Verify th
104 0
Android Studio无法运行程序调试程序出现Unable to connect to ADB.Check the Event Log for possible issues.Verify th
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: ERROR: APK pat
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: ERROR: APK pat
403 0
|
Android开发
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
77 0
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
|
JSON Java Android开发
android studio中出现Cannot resolve symbol 'json'问题完整简单解决方案
android studio中出现Cannot resolve symbol 'json'问题完整简单解决方案
612 0
android studio中出现Cannot resolve symbol 'json'问题完整简单解决方案
|
开发工具 Android开发
Flutter Unable to locate Android SDK.
Flutter Unable to locate Android SDK.
417 0
Flutter Unable to locate Android SDK.