安卓

工具集 | Android Studio — 常见异常

2019-10-15  本文已影响0人  彭旭锐

前言


1、Cannot resolve symbol ’R'
#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=5000

2、Failed to resolve:[aar 文件名]
...
android{
    ...
}

dependencies{
    ...
}

repositories {
    flatDir {
        dirs project(':[Module B名]').file('[依赖的aar文件名]')
    }
}

3、permission denied: ./gradlew

4、No IDEA annotations attached to the JDK 1.8, some issues will not be found
5、Gradle sync failed: Read timed out

Consult IDE log for more details (Help | Show Log) (1m 32s 930ms)


Execution failed for task ':[Module名]:transformClassesWithDexFor[Build Type名]'
Error:Execution failed for task ':[Module名]:transformClassesWithDexForNormal[Build Type名]'.
> com.android.build.api.transform.TransformException: 
com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: 
java.lang.RuntimeException: Translation has been interrupted

推荐阅读


感谢喜欢!你的点赞是对我最大的鼓励!欢迎关注彭旭锐的简书!

上一篇下一篇

猜你喜欢

热点阅读