简体   繁体   English

无法在Android应用中使用wifienterpriseconfig

[英]Unable to use wifienterpriseconfig in android app

I'm trying to use the WifiEnterpriseConfig and Eclipse isn't recognizing it, and I'm wondering what I'm doing wrong, or not doing at all. 我正在尝试使用WifiEnterpriseConfig而Eclipse无法识别它,我想知道自己做错了什么,或者根本没有做。

I have included: 我包括:

import android.net.wifi.WifiEnterpriseConfig;

The error I'm getting is: 我得到的错误是:

The import android.net.wifi.WifiEnterpriseConfig cannot be resolved

I've updated my SDK to include the API 18, and I've updated Eclipse. 我已经更新了SDK以包含API 18,并且已经更新了Eclipse。 Is there something else I'm missing? 还有其他我想念的东西吗?

I've clean/build several times, and also closed and reloaded Eclipse several times and nothing is working. 我已经清理/构建了好几次,并且还关闭并重新加载了Eclipse几次,但是没有任何效果。 I've also gone into Android Tools > Add Support Library. 我还进入了Android工具>添加支持库。

Any suggestions would be helpful. 任何的意见都将会有帮助。

  • Right click on your project => Properties => Java Build Path => Order and Export tab => check Android Private Libraries and select OK 右键单击您的项目=> Properties => Java Build Path => Order and Export tab =>检查Android Private Libraries然后选择确定

  • Clean Project 清洁项目

NOTE: If you are using any Android Library projects that are using the support library, make sure you go to the properties of that project and do the same thing. 注意:如果您使用的是使用支持库的任何Android库项目,请确保您进入该项目的属性并执行相同的操作。

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

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