zoukankan      html  css  js  c++  java
  • [Android开发] 导入不同版本的project解决方法

    1 导入android project

    可能会出现提示:导入android项目的时候invalid project description;

    解决的办法:将project移出默认的工作空间外,然后import,在选项框中copy to the workspace打钩;

    2 打开后会出现的问题:Unable toresolve target 'android-15'

    解决办法:

    (1)在eclipse的左侧projectexplorer中打开project.properties(有的是default.properties),将target=Google Inc.:Google APIs:17中修改成现在使用的版本;

    (2)在eclipse的左侧projectexplorer中打开AndroidManifest.xml中,修改版本level 。

    3 运行时可能出现的问题:

    The connection to adb is down, and a severeerror has occured.

    [2010-03-11 09:36:56 - HelloOPone] You mustrestart adb and Eclipse.

    [2010-03-11 09:36:56 - HelloOPone] Pleaseensure that adb is correctly located at 'D:\OPhoneSDK_1.5

    \platform-tools\adb.exe' and can beexecuted.

    解决:

    方法1.运行->cmd,回车输入adb kill-server,然后adb -startserver

    这里可能会出现的问题:在cmd中adb kill-server时提示adb不是内部或外部命令也不是可运行的程序

    解决方法:是环境配置的问题,找到adb.exe所在的文件夹,就是在放置android SDK和eclipse-IDE的文件夹下找到Android SDK-windows-x86\adt-bundle-windows-x86\sdk,由于版本的不同,有的放置在platform-tools文件夹中,有的放置在tools文件夹中,确定在那个文件夹,在环境系统变量Path中,需要注意的是Path中会配置的有其他的路径,需要在android的路径前加;

    方法2.方法1不管用,那么在任务管理器中关掉adb.exe(这里可能同时有好多个adb.exe,所以要注意一并关掉),然后重启Eclipse。

    方法3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe

    方法4.前面的方法试了还是不行的话,建议重新装一个系统,最好换个系统。有些大牛也说过:MS存在一些小问题

    参考:http://www.cnblogs.com/kissazi2/archive/2012/07/02/2572915.html

  • 相关阅读:
    request.getParameter() 、 request.getInputStream()和request.getReader() 使用体会
    HTTP之Content-Length
    关于spring3中No Session found for current thread!and Transaction的配置和管理(转)
    Java数据类型和MySql数据类型对应一览
    Spring MVC 解读——View,ViewResolver(转)
    LeetCode 441. Arranging Coins
    LeetCode 415. Add Strings
    LeetCode 400. Nth Digit
    LeetCode 367. Valid Perfect Square
    LeetCode 326. Power of Three
  • 原文地址:https://www.cnblogs.com/qingsunny/p/2886342.html
Copyright © 2011-2022 走看看