티스토리 뷰

샘플 application을 받아 안드로이드 studio에서 build 후 실행하려 했더니 아래와 같은 에러가 발생해서 설치가 되지 않는다.

오전 11:07:56 UnsupportedMethodException
       Unsupported method: AndroidProject.getPluginGeneration().
       The version of Gradle you connect to does not support that method.
       To resolve the problem you can change/upgrade the target version of Gradle you connect to.
        Alternatively, you can ignore this exception and read other information from the model.

AndroidProject.getPluginGeneration()이 미지원 method라고 하는데...

설정에서 Instant run을 disable하고 문제를 해결을 할 수 있었다.



참조: http://stackoverflow.com/questions/39675848/unsupportedmethodexception-android-studio-2-2


추가로, Android Studio에서 샘플 application의 프로젝트를 open할때 아래와 같은 팝업이 발생한다. 이때 Update 버튼을 누르면 classpath가 적절한 버전으로 변경되고, 위의 에러가 발생하지 않는다.

   dependencies {

        classpath 'com.android.tools.build:gradle:2.2.3'

    }


'프로그래밍 > 안드로이드' 카테고리의 다른 글

Eclipse에서 사인된 Keystore 사용하기  (0) 2016.02.04
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함