问题1:The specified child already has a parent. You must call removeView()java
缘由:一个孩子只能有一个父亲,在调用的过程当中同一个孩子出现了两个父亲。缓存
解决方案:在添加视图以前断除孩子和其余父亲的关系。测试
ViewGroup viewParent = (ViewGroup)pauseLinearLayout.getParent(); if(viewParent != null) { viewParent.removeAllViewsInLayout(); } layoutLoading.addView(pauseLinearLayout);
问题2:the project system may be using a version of Gradle that does not contain the method
gradle
解决方案:删除build.gradle里面的:ui
{ compileSdkVersion 17 buildToolsVersion '18.1.0' } dependencies { }
问题3:andriod library projects cannot be launchedspa
缘由:工程有缓存code
解决方案:orm
在工程上点击右键,选择propertiesip
在Android中不要选中 Is Library,而且Remove里面的全部东西,选择本身用的就ok了。ci
问题4:the selected device is incompatible
问题缘由:设备未链接。
缘由:测试设备的ip可能冲突了。
解决方案:重设测试设备的ip