Android studio导入eclipse项目遇到的错误解决方案
2018-08-30 15:17
681 查看
Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.
在控制台输入
gradlew compileDebugSources --stacktrace -info
在打印的log中找到问题
发现是缺少一些类的问题
Error running app: Default Activity Not Found
1、打开配置
将default Activity换成Nothing即可
Annotation processors must be explicitly declared now.
导入的项目中用到的butter knife报错
Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - butterknife-7.0.1.jar Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future. See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
解决方法:
在build.gradle中添加如下配置
android { ... defaultConfig { ... javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } } ... }
相关文章推荐
- Android Studio 之 导入Eclipse项目常见问题及解决方案 在将Eclipse做的Android项目成功导入Android Studio 后,启动生成,遇到一些问题,现总结如下:
- Android Studio 导入Eclipse项目遇到的错误总结
- Eclipse项目导入到Android Studio时遇到的错误Error: java.util.concurrent.ExecutionException: com.android.ide.comm
- Eclipse项目导入到Android Studio时遇到的错误Error: java.util.concurrent.ExecutionException: com.android.ide.comm
- windows eclipse导入maven项目遇到错误
- 【Android Studio错误汇总】eclipse项目导入Android Studio .9.png图片不能识别报错的问题
- Android Studio 导入项目时遇到sdk location not found错误,如何解决
- Android Studio 导入Eclipse项目后,so文件出现错误,出现UnsatisfiedLinkError
- Eclipse项目导入Eclipse以及、Android Studio过程中遇到的问题.
- Android studio导入Eclipse项目,和一些错误的解决
- Eclipse项目导入到Android studio遇到的坑
- Android studio 3.0 Beta 2 导入eclipse项目遇到的问题
- Android Studio 之 导入Eclipse项目常见问题及解决方案
- 在导入eclipse项目到Android Studio出现这样的错误, 非法字符: ‘\ufeff‘ 解决方案|错误: 需要class, interface或enum
- eclipse导入Maven父子项目出现的错误及解决方案
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- 用eclipse开发项目时遇到的常见错误整理,和配套解决方案
- Android studio导入含有jni代码依赖工程的eclipse项目及常见错误解决
- 用eclipse开发项目时遇到的常见错误整理,和配套解决方案(1)
- Android Studio导入Eclipse项目工程错误汇总