在Android Studio中打开Android Device Monitor时报错的解决方法

在Android Studio中打开Android Device Monitor时报以下错误时(Android-SDK\tools\lib\monitor-x86_64\configuration\1491536029820.log),请关闭Android Studio后以管理员的模式打开Android Studio后即可解决此问题。

!SESSION 2017-04-07 11:33:49.545 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.8.0_112-release

java.vendor=JetBrains s.r.o

BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN

Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data @noDefault

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.420

!MESSAGE Bundle reference:file:org.apache.ant_1.8.3.v201301120609/@4 not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.438

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.455

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.552

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.558

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.563

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.571

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.582

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.588

!MESSAGE Bundle reference:file:org.eclipse.team.co[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.593

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.600

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:50.606

!MESSAGE Bundle reference:file:[email protected] not found.

!ENTRY org.eclipse.osgi 2 0 2017-04-07 11:33:52.114

!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.114

!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.platform_4.2.2.v201302041200/ was not resolved.

!SUBENTRY 2 org.eclipse.platform 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing required bundle org.eclipse.ui.intro_[3.2.0,4.0.0).

!SUBENTRY 2 org.eclipse.platform 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.114

!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.equinox.http.jetty_3.0.1.v20121109-203239.jar was not resolved.

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing imported package org.eclipse.jetty.server.session_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing imported package org.eclipse.jetty.server.ssl_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing imported package org.eclipse.jetty.server_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing imported package org.eclipse.jetty.server.bio_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing imported package org.eclipse.jetty.server.nio_[8.0.0,9.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.114

!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.ltk.ui.refactoring_3.7.0.v20120523-1543.jar was not resolved.

!SUBENTRY 2 org.eclipse.ltk.ui.refactoring 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing required bundle org.eclipse.team.ui_[3.4.100,4.0.0).

!SUBENTRY 2 org.eclipse.ltk.ui.refactoring 2 0 2017-04-07 11:33:52.114

!MESSAGE Missing required bundle org.eclipse.team.core_[3.4.100,4.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.114

!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.equinox.jsp.jasper.registry_1.0.300.v20120912-130548.jar was not resolved.

!SUBENTRY 2 org.eclipse.equinox.jsp.jasper.registry 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.115

!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.jetty.security_8.1.3.v20120522.jar was not resolved.

!SUBENTRY 2 org.eclipse.jetty.security 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing imported package org.eclipse.jetty.server_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.security 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.1.0,9.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.115

!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.ui.intro.universal_3.2.600.v20120912-155524/ was not resolved.

!SUBENTRY 2 org.eclipse.ui.intro.universal 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing required bundle org.eclipse.ui.intro_[3.4.0,4.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.115

!MESSAGE Bundle [email protected]:file:plugins/org.apache.lucene.analysis_2.9.1.v201101211721.jar was not resolved.

!SUBENTRY 2 org.apache.lucene.analysis 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.115

!MESSAGE Bundle [email protected]:file:plugins/org.apache.lucene_2.9.1.v201101211721.jar was not resolved.

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.115

!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.jetty.servlet_8.1.3.v20120522.jar was not resolved.

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing imported package org.eclipse.jetty.server.session_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing imported package org.eclipse.jetty.server_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing imported package org.eclipse.jetty.server.ssl_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing imported package org.eclipse.jetty.server.nio_[8.1.0,9.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.115

!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.equinox.jsp.jasper_1.0.400.v20120912-130548.jar was not resolved.

!SUBENTRY 2 org.eclipse.equinox.jsp.jasper 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing imported package org.apache.jasper.servlet_[0.0.0,6.0.0).

!SUBENTRY 2 org.eclipse.equinox.jsp.jasper 2 0 2017-04-07 11:33:52.115

!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".

!ENTRY org.eclipse.osgi 2 0 2017-04-07 11:33:52.179

!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.180

!MESSAGE Bundle org.apache.lucene_2.9.1.v201101211721 [24] was not resolved.

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing optionally required bundle org.apache.lucene.analysis_[2.9.1,3.0.0).

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing optionally required bundle org.apache.lucene.highlighter_[2.9.1,3.0.0).

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing optionally required bundle org.apache.lucene.memory_[2.9.1,3.0.0).

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing optionally required bundle org.apache.lucene.queries_[2.9.1,3.0.0).

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing optionally required bundle org.apache.lucene.snowball_[2.9.1,3.0.0).

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing optionally required bundle org.apache.lucene.spellchecker_[2.9.1,3.0.0).

!SUBENTRY 2 org.apache.lucene 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing optionally required bundle org.apache.lucene.misc_[2.9.1,3.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.180

!MESSAGE Bundle org.apache.lucene.analysis_2.9.1.v201101211721 [25] was not resolved.

!SUBENTRY 2 org.apache.lucene.analysis 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.180

!MESSAGE Bundle org.eclipse.equinox.http.jetty_3.0.1.v20121109-203239 [89] was not resolved.

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing imported package org.eclipse.jetty.server_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing imported package org.eclipse.jetty.server.bio_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing imported package org.eclipse.jetty.server.nio_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing imported package org.eclipse.jetty.server.session_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing imported package org.eclipse.jetty.server.ssl_[8.0.0,9.0.0).

!SUBENTRY 2 org.eclipse.equinox.http.jetty 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing imported package org.eclipse.jetty.servlet_[8.0.0,9.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.180

!MESSAGE Bundle org.eclipse.equinox.jsp.jasper_1.0.400.v20120912-130548 [92] was not resolved.

!SUBENTRY 2 org.eclipse.equinox.jsp.jasper 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing imported package org.apache.jasper.servlet_[0.0.0,6.0.0).

!SUBENTRY 2 org.eclipse.equinox.jsp.jasper 2 0 2017-04-07 11:33:52.180

!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.181

!MESSAGE Bundle org.eclipse.equinox.jsp.jasper.registry_1.0.300.v20120912-130548 [93] was not resolved.

!SUBENTRY 2 org.eclipse.equinox.jsp.jasper.registry 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.equinox.jsp.jasper_0.0.0.

!SUBENTRY 2 org.eclipse.equinox.jsp.jasper.registry 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.181

!MESSAGE Bundle org.eclipse.jetty.security_8.1.3.v20120522 [136] was not resolved.

!SUBENTRY 2 org.eclipse.jetty.security 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.jetty.server_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.security 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.1.0,9.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.181

!MESSAGE Bundle org.eclipse.jetty.servlet_8.1.3.v20120522 [137] was not resolved.

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing optionally imported package org.eclipse.jetty.jmx_8.0.0.

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.jetty.security_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.jetty.server_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.jetty.server.handler_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.jetty.server.nio_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.jetty.server.session_[8.1.0,9.0.0).

!SUBENTRY 2 org.eclipse.jetty.servlet 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing imported package org.eclipse.jetty.server.ssl_[8.1.0,9.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.181

!MESSAGE Bundle org.eclipse.ltk.ui.refactoring_3.7.0.v20120523-1543 [145] was not resolved.

!SUBENTRY 2 org.eclipse.ltk.ui.refactoring 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing required bundle org.eclipse.team.core_[3.4.100,4.0.0).

!SUBENTRY 2 org.eclipse.ltk.ui.refactoring 2 0 2017-04-07 11:33:52.181

!MESSAGE Missing required bundle org.eclipse.team.ui_[3.4.100,4.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.181

!MESSAGE Bundle org.eclipse.platform_4.2.2.v201302041200 [148] was not resolved.

!SUBENTRY 2 org.eclipse.platform 2 0 2017-04-07 11:33:52.182

!MESSAGE Missing required bundle org.eclipse.ui.intro_[3.2.0,4.0.0).

!SUBENTRY 2 org.eclipse.platform 2 0 2017-04-07 11:33:52.182

!MESSAGE Missing optionally required bundle org.eclipse.ui.cheatsheets_[3.2.0,4.0.0).

!SUBENTRY 2 org.eclipse.platform 2 0 2017-04-07 11:33:52.182

!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.182

!MESSAGE Bundle org.eclipse.search_3.8.0.v20120523-1540 [150] was not resolved.

!SUBENTRY 2 org.eclipse.search 2 0 2017-04-07 11:33:52.182

!MESSAGE Missing required bundle org.eclipse.ltk.ui.refactoring_[3.5.0,4.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.182

!MESSAGE Bundle org.eclipse.ui.intro.universal_3.2.600.v20120912-155524 [162] was not resolved.

!SUBENTRY 2 org.eclipse.ui.intro.universal 2 0 2017-04-07 11:33:52.182

!MESSAGE Missing required bundle org.eclipse.ui.intro_[3.4.0,4.0.0).

!SUBENTRY 1 org.eclipse.osgi 2 0 2017-04-07 11:33:52.182

!MESSAGE Bundle org.eclipse.ui.navigator.resources_3.4.400.v20120705-114010 [164] was not resolved.

!SUBENTRY 2 org.eclipse.ui.navigator.resources 2 0 2017-04-07 11:33:52.182

!MESSAGE Missing required bundle org.eclipse.ltk.ui.refactoring_[3.5.0,4.0.0).

!ENTRY org.eclipse.osgi 4 0 2017-04-07 11:33:52.190

!MESSAGE Application error

!STACK 1

java.lang.NullPointerException

at org.eclipse.core.runtime.URIUtil.toURI(URIUtil.java:280)

at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:127)

at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:370)

at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:220)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:557)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at com.android.ide.eclipse.monitor.MonitorApplication.start(MonitorApplication.java:63)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

可参考链接:http://stackoverflow.com/questions/27526596/android-device-monitor-doesnt-open-error-on-log-file

来自为知笔记(Wiz)

时间: 2024-12-24 08:11:51

在Android Studio中打开Android Device Monitor时报错的解决方法的相关文章

解决Android studio 中的 Android Device Monitor 中 File Explorer 无法打开data目录的方法(转载 http://www.jianshu.com/p/d8a9a2918c61)

Android Device Monitor 文件管理的常见问题  (转自http://www.jianshu.com/p/d8a9a2918c61) 作者 knightaoko 关注 2017.03.21 11:41* 字数 2750 阅读 770评论 5喜欢 9 Android Device Monitor 是 Android Studio 中用于监测模拟器或真机运行状态的一款开发者工具.但开发者在使用它的过程中往往会遇到很多问题,尤其对于新手.本文分析了实际学习中遇到的问题,包括:1. F

在Android Studio中打开DDMS

DDMS(Dalvik Debug Monitor Service),提供了一系列的调试服务,如logcat.设备屏幕截图.查看进程等等的辅助调试服务. 本经验介绍怎样在Android Studio中打开DDMS窗口. 工具/原料 Android Studio 方法/步骤 1 启动Android Studio 2 DDMS即可以在菜单中打开,也可以通过工具条打开.下面介绍这两种方式. END 在菜单栏中打开DDMS 1 点击"Tools"菜单,如图: 2 再选择"Androi

在android studio中新建android gradle project的时候connect refused:connect或者卡在building project...或Refreshing

在android studio中新建android gradle project的时候connect refused:connect或者卡在building project...或Refreshing xxx gradle project === 原因是: gradle在创建时需要联网,不然的话会失败,我虽然可以联网,但是不能访问gradle网站或者下载不了,所以不行. 感谢伟大的GFW,两种方法 1. 使用代理 --- 翻墙就可以了 - 启动XX门 - android studio -> se

C++中的字符数组逐个赋值时报错的解决方法

C++中的字符数组逐个赋值时报错的解决方法 C++中定义一个字符数组的时候,如果初始化,则cout的时候不会出错,但是在逐个字符赋值的时候,很容易出错. #include<iostream> #include<string> using namespace std; int main() { //char s[100] = "china"; char s[100]; s[0]='c'; s[1]='n'; s[2]='\0'; cout<<s<

MySQL中遇到的几种报错及其解决方法

MySQL中遇到的几种报错及其解决方法 1.[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''xxx'' at line 1 解决方法:将所有的" '' "换成" ·· "(将所有的英文单引号换为Tab键上面的那个点号)

vue.js 中使用(...)运算符报错的解决方法

vue.js 中使用(...)运算符报错的解决方法 Syntax Error:Unexpected token(XX:X) }, computed:{ ...mapGetters([ 'pageSize' ]) }, 这个错误是在项目中,不识别es6的扩展运算符,解决办法(四步走)如下: 第一步:安装babel-plugin-transform-object-rest-spread cnpm install babel-plugin-transform-object-rest-spread 第二

android 程序中res/values-v14/styles.xml报错的解决办法

从旧的ADT迁移的新的ADT时, android 程序中res/values-v14/styles.xml报错: error: Error retrieving parent for item: No resource found that matches the given name :Theme.AppCompat.Light.DarkActionBar 解决办法:修改项目下的project-properties文件, 把下面这一行加入,指向新导入的support库(需要先导入这个库) an

【Logcat】在Android Studio中查看android APP 日志

参考资料: http://jingyan.baidu.com/article/948f592408e07bd80ff5f9a9.html http://www.linuxidc.com/Linux/2015-05/117919p2.htm 1.首先启动android studio,在工具栏选择Tools>Android>Android Device Monitor ***若首次打开需选中android工程并打开*** 2.连接完成后Android Device Monitor窗口显示如下: 3

android studio集成腾讯云通信时报错,could not expand zip imsdk.jar

最近在集成腾讯云通信sdk时,遇到一奇葩问题,android studio环境下老是提示could not expand ZIP:xxxxx  imsdk.jar; 后来经过多方查询与试错,最终找到终极原因, 腾讯sdk不支持2.1以上gradle版本(gradle 2.0 测试通过,直接在build.gradle中修改版本号为2.0即可): 深圳app外包