Android : "Could not determine java version from '10.0.1'"을 해결하는 방법
                                            
                                                
                                                
                                                
                                                
                                                
                                                 2359 단어  안드로이드AndroidStudio자바안드로이드 개발
                    
소개
Android 개발에서 ./gradlew 할 때Could not determine java version from '10.0.1'.라는 오류가 발생했습니다. 초보자를 위해 비망록을 포함하고 남기고 싶습니다.
처음에 이번 참고로 한 GitHub입니다. 보다 정확한 정보가 기재되어 있으므로, 좋으면 참조하십시오.
이번에 참고 한 GitHub : htps : // 기주 b. 코 m / g 등 d ぇ / g 등 d ぇ / 이스에 s / 5764
 ①gradle의 업그레이드를 실시한다
 htps // g et al. 오 rg / an s ta l / # u th th ぇ-g 등
상기 공식 기사를 참고로,
upgrade$ ./gradlew wrapper --gradle-version=4.9 --distribution-type=bin
그렇게함으로써 해결할 수있는 것 같았지만, 제 경우에는 원래 오류와 마찬가지로
 
위와 같이 해결할 수 없었습니다.
 ②gradle/wrapper/gradle-wrapper.properties의 버전 변경
gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
以下のように変更
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
 
위와 같이 변경하고 다시,
터미널$ ./gradlew wrapper --gradle-version=4.9 --distribution-type=bin
하는 것으로 대부분의 분이 해결된다고 생각합니다.
다음은 위에서도 해결되지 않은 경우입니다.
gradle/wrapper/gradle-wrapper.properties의 버전을 변경했지만,
내 경우에는 다음과 같은 오류가 반환되었습니다.
터미널because of exception org.spockframework.util.IncompatibleGroovyVersionException: The Spock compiler plugin cannot execute because Spock 1.0.0-groovy-2.3 is not compatible with Groovy 2.4.12.
라는 오류가 되어 upgrade를 할 수 없었습니다.
 h tp : //k 소이치로. bgs포 t. 이 m / 2015 / 10 / g et al. d-28s pock. HTML
위의 기사를 참고로 build.gradle을 조정하면 무사히 upgrade 할 수있었습니다.
도움이되면 다행입니다.
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(Android : "Could not determine java version from '10.0.1'"을 해결하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/Atsushi_/items/72361cb91f84eb22e149
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
htps // g et al. 오 rg / an s ta l / # u th th ぇ-g 등
상기 공식 기사를 참고로,
upgrade
$ ./gradlew wrapper --gradle-version=4.9 --distribution-type=bin
그렇게함으로써 해결할 수있는 것 같았지만, 제 경우에는 원래 오류와 마찬가지로

위와 같이 해결할 수 없었습니다.
②gradle/wrapper/gradle-wrapper.properties의 버전 변경
gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
以下のように変更
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
 
위와 같이 변경하고 다시,
터미널$ ./gradlew wrapper --gradle-version=4.9 --distribution-type=bin
하는 것으로 대부분의 분이 해결된다고 생각합니다.
다음은 위에서도 해결되지 않은 경우입니다.
gradle/wrapper/gradle-wrapper.properties의 버전을 변경했지만,
내 경우에는 다음과 같은 오류가 반환되었습니다.
터미널because of exception org.spockframework.util.IncompatibleGroovyVersionException: The Spock compiler plugin cannot execute because Spock 1.0.0-groovy-2.3 is not compatible with Groovy 2.4.12.
라는 오류가 되어 upgrade를 할 수 없었습니다.
 h tp : //k 소이치로. bgs포 t. 이 m / 2015 / 10 / g et al. d-28s pock. HTML
위의 기사를 참고로 build.gradle을 조정하면 무사히 upgrade 할 수있었습니다.
도움이되면 다행입니다.
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(Android : "Could not determine java version from '10.0.1'"을 해결하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/Atsushi_/items/72361cb91f84eb22e149
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
以下のように変更
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
$ ./gradlew wrapper --gradle-version=4.9 --distribution-type=bin
because of exception org.spockframework.util.IncompatibleGroovyVersionException: The Spock compiler plugin cannot execute because Spock 1.0.0-groovy-2.3 is not compatible with Groovy 2.4.12.
Reference
이 문제에 관하여(Android : "Could not determine java version from '10.0.1'"을 해결하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/Atsushi_/items/72361cb91f84eb22e149텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)