ECLIPSE编辑Android项目,系统报错信息“Can‘t find API database; API check not performed”的解决方法

我的电脑系统为WIN10,安装了WIN64位的JDK和ECLIPSE软件。


          1、jdk-8u271-windows-x64.exe
          2、eclipse-inst-win64---2018-09Ra V4.9.exe

Android SDK安装在C盘如下路径:

C:\Users\LQL\AppData\Local\Android\android-sdk\platforms

用ECLIPSE打开工程项目,编译时始终报错:

Can't find API database; API check not performed”

搜索网络,网上说是AndroidManifest.xml中定义的最低版本和目前版本跟C盘安装的SDK版本不匹配导致!!!

一、我的系统配置情况

1、打开AndroidManifest.xml
           最低版本为20
           目前版本为24

 

2、打开project.properties
          target=android-24

3、C:\Users\LQL\AppData\Local\Android\android-sdk\platforms
        我可以观察到android-20   ---> android-25

4、C:\Users\LQL\AppData\Local\Android\android-sdk\build-tools
           我可以观察到android-20   ---> android-25

 

5、安卓SDK路径如下
              C:\Users\LQL\AppData\Local\Android\android-sdk

 

 

二、解决方法

        既然网上说是AndroidManifest.xml中定义的最低版本和目前版本跟C盘安装的SDK版本不匹配导致,我之前只安装了android-20   ---> android-25,那么我就尝试把

android-7   ---> android-19也一并安装。

      经过测试,安装完android-7   ---> android-19后,故障排除。

        以下是安装android-7   ---> android-19的过程:

 

 

安装完毕,C:\Users\LQL\AppData\Local\Android\android-sdk\platforms
        我可以观察到android-7   ---> android-25

三、编译工程项目

        重新编译后,没有再报Can't find API database; API check not performed  错误,故障排除。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值