我导入了我的一个android项目并尝试在模拟器中运行它。很快我点击了运行按钮,ADB即将初始化我看到一个红色气球“发生内部错误”。日志显示以下错误
null
java.lang.NullPointerException
at com.android.sdklib.internal.avd.AvdManager.parseAvdInfo(AvdManager.java:1514)
at com.android.sdklib.internal.avd.AvdManager.buildAvdList(AvdManager.java:1478)
at com.android.sdklib.internal.avd.AvdManager.<init>(AvdManager.java:373)
at com.android.sdklib.internal.avd.AvdManager.getInstance(AvdManager.java:411)
at com.android.tools.idea.avdmanager.AvdManagerConnection.initIfNecessary(AvdManagerConnection.java:159)
at com.android.tools.idea.avdmanager.AvdManagerConnection.getAvds(AvdManagerConnection.java:255)
at com.android.tools.idea.run.editor.DevicePicker.lambda$refreshAvds$496(DevicePicker.java:186)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
我尝试了很多其他问题中提到的解决方案,但都是徒劳的 任何解决方案请 附图也是
答案 0 :(得分:0)
我刚刚通过删除 jupyter notebook
Traceback (most recent call last):
File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "c:\python34\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python34\Scripts\jupyter-notebook.EXE\__main__.py", line 5, in <module>
File "c:\python34\lib\site-packages\notebook\notebookapp.py", line 47, in <module>
from tornado import httpserver
File "c:\python34\lib\site-packages\tornado\httpserver.py", line 34, in <module>
from tornado.http1connection import HTTP1ServerConnection, HTTP1ConnectionParameters
File "c:\python34\lib\site-packages\tornado\http1connection.py", line 28, in <module>
from tornado import gen
File "c:\python34\lib\site-packages\tornado\gen.py", line 1243, in <module>
import tornado.platform.asyncio
File "c:\python34\lib\site-packages\tornado\platform\asyncio.py", line 33, in <module>
import asyncio # type: ignore
File "c:\python34\lib\asyncio\__init__.py", line 32, in <module>
from .windows_events import *
File "c:\python34\lib\asyncio\windows_events.py", line 114, in <module>
class _WindowsSelectorEventLoop(selector_events.BaseSelectorEventLoop):
AttributeError: 'module' object has no attribute 'BaseSelectorEventLoop'
中的所有文件解决了这个问题
但我的avd仍然无法正常运行。