解决方案-在Mac系统中,Eclipse无法导入含有中文路径的工程

1、修改eclipse.app/Contents/Info.plist,查找

CFBundleExecutable
在其上方添加以下代码 


  
  
  
      
        LSEnvironment  
          
            JAVA_TOOL_OPTIONS  
            -Dfile.encoding=UTF-8  
            LANG  
            zh_CN.UTF-8  

          
        CFBundleExecutable


2、修改eclipse.app/Contents/MacOS/eclipse.ini,在最后一行添加 -Dfile.encoding=UTF-8

3、关闭eclipse,重新启动,并退出

4、打开命令终端,执行如下命令

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -v -f /Applications/eclipse/eclipse.app


5  重新启动Eclipse

你可能感兴趣的:(Android,eclipse,中文路径,导入工程,android)