安卓开发 异常
feiteyizu
这个作者很懒,什么都没留下…
展开
-
安卓开发 异常处理 Invalid VCS root mapping The directory
1.新的项目在 ide里打开报错 : Invalid VCS root mapping The directory E:\AndroidWorkspace\SerialPortHelper-master is registered as a Git root, but no Git repositories were found there.解决: settings 版本控制 去除 这个 ;...原创 2018-07-04 10:56:11 · 26377 阅读 · 3 评论 -
Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicitly dec
体验最新版AndroidStudio3.0 Canary 8的时候,发现之前项目的butter knife报错,用到注解的应该都会报错Error:Execution failed for task ':app:javaPreCompileDebug'.> Annotation processors must be explicitly declared now. The followi...转载 2018-07-09 11:33:59 · 569 阅读 · 0 评论 -
More than one file was found with OS independent path 'META-INF/DEPENDENCIES'
今天在Android Studio中编译工程的时候,遇见了一个奇怪的问题,报错如下:Error:Execution failed for task ‘:app:transformResourcesWithMergeJavaResForDebug’. More than one file was found with OS independent path ‘META-INF/DEPENDENCIE...转载 2018-07-09 11:35:06 · 14435 阅读 · 10 评论 -
You need to use a Theme.AppCompat theme (or descendant) with this activity.
问题原因:版本问题Activity继承自 android.support.v7.app.AppCompatActivity,而不是 android.app.Activity。解决方法方法1:创建的activity时,如果不是那么强烈需要继承自AppCompatActivity,就直接继承Activity。 如将activity继承自AppCompatActivity:public class Ma...转载 2018-07-09 11:40:30 · 187 阅读 · 0 评论 -
com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
1.原因,在 引入别的 模块的时候,两个模块有jar包的引入重复;去掉一个就解决了原创 2018-07-09 20:09:21 · 131 阅读 · 0 评论 -
java.lang.NoSuchFieldError: No field of type I in class Lcom/spd/tcs1g/R$id; or its superclasses
多个模块的时候activity重名 导致 报错 java.lang.NoSuchFieldError: No field of type I in class Lcom/spd/tcs1g/R$id; or its superclasses 解决:重名的 activity 重命名 解决;原创 2018-07-10 10:04:05 · 845 阅读 · 0 评论 -
Error:Execution failed for task ‘:app:preDebugAndroidTestBuild’. Conflict with dependency ‘com.andr
Error : Execution failed for task ’ :app: preDebugAndroidTestBuild’.Conflict with dependency ‘com.android.support:support-annotations’ in project ‘:app’. Resolved versions for app (26.1.0) and test ap...原创 2018-07-13 10:19:07 · 122 阅读 · 0 评论