如何为android studio导入android.os.ServiceManager? [英] how to import android.os.ServiceManager for android studio?
问题描述
我尝试导入项目,并且是导入摘要
ECLIPSE ANDROID PROJECT导入摘要
======================================
忽略的文件:
--------------
以下文件未被*复制到新的Gradle项目中;你需要评估你的项目是否仍然需要这些,如果你需要手动移动它们,那么你需要这么做:
* Android.mk
* ic_launcher-web.png
* proguard-project.txt
* proguard.cfg
* proguard.flags
移动文件:
------------
Android Gradle项目使用与ADT不同的目录结构
Eclipse项目。以下是项目重组的方式:
* AndroidManifest.xml => app \ src \ main \ AndroidManifest.xml
* assets \ => app \src\main \ assets \
* jni \ => app \\\\\\\\\\\\\\\\\\\\\\\\\\\ app \ src \\\\\
* src \ => app \ src \\\\\\\\\\\\\\\\\\\\\\\\\\\
您现在可以构建项目了。 Gradle项目需要网络
连接才能下载依赖项。
错误:
-----
如果由于某种原因您的项目没有构建,并且您确定
这是由于Eclipse到Gradle导入器的错误或限制,
请在http://b.android.com上提交类别的错误
组件工具。
(此导入摘要仅供参考,一旦您对结果感到满意,可以在导入后删除
。)
我尝试构建,但错误消息
I try import project, and is import-summary
ECLIPSE ANDROID PROJECT IMPORT SUMMARY
======================================
Ignored Files:
--------------
The following files were *not* copied into the new Gradle project; you
should evaluate whether these are still needed in your project and if
so manually move them:
* Android.mk
* ic_launcher-web.png
* proguard-project.txt
* proguard.cfg
* proguard.flags
Moved Files:
------------
Android Gradle projects use a different directory structure than ADT
Eclipse projects. Here's how the projects were restructured:
* AndroidManifest.xml => app\src\main\AndroidManifest.xml
* assets\ => app\src\main\assets\
* jni\ => app\src\main\jni\
* res\ => app\src\main\res\
* src\ => app\src\main\java\
Next Steps:
-----------
You can now build the project. The Gradle project needs network
connectivity to download dependencies.
Bugs:
-----
If for some reason your project does not build, and you determine that
it is due to a bug or limitation of the Eclipse to Gradle importer,
please file a bug at http://b.android.com with category
Component-Tools.
(This import summary is for your information only, and can be deleted
after import once you are satisfied with the results.)
I try build, but error message
Error:(41, 18) error: cannot find symbol class SystemProperties
Error:(10, 18) error: cannot find symbol class ServiceManager
Error:(471, 34) error: cannot find symbol method getWifiApState()
Error:(267, 3) error: cannot find symbol variable SystemProperties
Error:(474, 34) error: cannot find symbol variable WIFI_AP_STATE_ENABLING
...更多错误
和导入错误消息
无法解析符号'ServiceManager','SystemProperties','WifiP2pWfdInfo'
help,plz ..
... more error
and import error message
Cannot resolve symbol 'ServiceManager', 'SystemProperties', 'WifiP2pWfdInfo'
help, plz..
推荐答案
参见 http://stackoverflow.com/questions/13564281/android-os-servicemanager-not-found-while-building [< a href =http://stackoverflow.com/questions/13564281/android-os-servicemanager-not-found-while-buildingtarget =_ blanktit le =新窗口> ^ ]。
这篇关于如何为android studio导入android.os.ServiceManager?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!