Android Studio 2.2 preview1 errors

前端 未结 3 586
走了就别回头了
走了就别回头了 2020-12-20 21:41

So i\'m trying to use Android Studio 2.2 preview-1 in Ubuntu 14.04 LTS.

I\'m using gradle-2.10 and gradle-plugin 2.2.0-alpha1 along

3条回答
  •  失恋的感觉
    2020-12-20 22:35

    It Looks like a problem of version 2.10 of the wrapper version on gradle.

    After reading around people's workaround like

    • "invalidate cache and restart"
    • delete .gradle file in the project and re-open it
    • etc etc

    I just try for fun to install a standalone version of gradle since I'd always used only the wrapper version that cames with android studio.

    And with it there is any error and any warning.

    For anyone who wanna try (I'm a mac's user):

    • install gradle (by homebrew is fine and pretty easy) brew install gradle
    • tell to AS to use that one instead the wrapper version preference -> build, Execution, Deveployment -> Gradle -> use local gradle distribution

    if you install it by homebrew like me the correct path will be: /usr/local/Cellar/gradle/x.yy/libexec where x.yy it suppose to be 2.11 (that is the last version provide by brew even if the lastest version released is 2.13)


    I've realised just now that the steps above doens't fix the definitly. Each time you re-open the project the problem came again and again. It's annoying but changing betwen use of "wrapper"/"regular gradle" take the warning away. But this means also that isn't a problem o the gradle as I'd assumed at the beginning.

    ...let's wait a permanent fix ^^

提交回复
热议问题