简体   繁体   English

导入Android NDK项目时Eclipse挂起

[英]Eclipse hangs when importing Android NDK project

I'm using a fresh copy of the Eclipse ADT 23.0.2 package (this happens with older versions aswell). 我正在使用Eclipse ADT 23.0.2软件包的新副本(这也会在旧版本中发生)。 When I create a new workspace and try to import an Android project that uses the NDK, Eclipse hangs on the "Import Projects" dialog. 当我创建一个新的工作区并尝试导入使用NDK的Android项目时,Eclipse会挂在“导入项目”对话框上。 Trying to close the dialog pops up the message 尝试关闭对话框会弹出消息

"Wizard can not be closed due to an active operation. You must cancel the operation before you can close the wizard".

The only thing I can do is kill the javaw.exe process, help! 我唯一能做的就是杀死javaw.exe进程,帮助!

One of the reasons this happens is that when you set the location of the SDK and NDK in Eclipse, the location of the NDK gets stored within the workspace itself. 发生这种情况的原因之一是,当您在Eclipse中设置SDK和NDK的位置时,NDK的位置会存储在工作空间本身中。 You can verify this by creating a new workspace and navigating to 您可以通过创建一个新的工作区并导航到来验证这一点。

Windows->Preferences->Android

"SDK Location" should be set but when you click on the "NDK" option, the location should be empty. 应该设置“ SDK位置”,但是当您单击“ NDK”选项时,该位置应该为空。 Setting the NDK location again and then importing a project into your freshly created workspace should solve the problem. 再次设置NDK位置,然后将项目导入到新创建的工作区中应该可以解决该问题。

The exact location of the save file is: 保存文件的确切位置是:

*workspace*/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ndk.prefs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM