eclipse工程导入android studio遇到的问题

错误异常1:

Error:Timeout waiting to lock buildscript class cache for settings file '/home/username/AndroidStudioProjects/MumuWeibo/settings.gradle' (/home/luliang/.gradle/caches/2.2.1/scripts/settings_978qnmx0crtxmlp5vmq35a4z7/SettingsScript/buildscript). It is currently in use by another Gradle instance.
Owner PID: unknown
Our PID: 5095
Owner Operation: unknown
Our operation: Initialize cache
Lock file: /home/username/.gradle/caches/2.2.1/scripts/settings_978qnmx0crtxmlp5vmq35a4z7/SettingsScript/buildscript/cache.properties.lock

解决方法:
删除Lock File的目录“/home/username/.gradle/caches/2.2.1/scripts/settings_978qnmx0crtxmlp5vmq35a4z7”。

错误异常2:

Error:Frame pixels must be either solid or transparent (not intermediate alphas).

解决方法:升级最新的android build tools, 然后修改build.gradle的buildToolsVersion:

android {
    compileSdkVersion 14
    **buildToolsVersion "22.0.1"**

    defaultConfig {
        applicationId "com.test.app"
        minSdkVersion 10
        targetSdkVersion 10
    }

    ...
}

错误异常3:

Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

参考链接: http://stackoverflow.com/questions/26431676/appcompat-v721-0-0-no-resource-found-that-matches-the-given-name-attr-andro

猜你喜欢

转载自blog.csdn.net/bangelua/article/details/45787663