안드로이드 스튜디오 썸네일형 리스트형 안드로이드 스튜디오 에러해결 - ERROR: Unsupported method: AndroidProject.getVariantNames(). android studio 를 업데이트 하고 기존 프로젝트를 불러왔더니 이런 에러가 뜨면서 진행이 안된다. ERROR: Unsupported method: AndroidProject.getVariantNames(). 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. 방법은 File - Settings - Experimen.. 안드로이드 앱버전, 앱코드 가져오기 소스코드 ( 일일이 다 테스트 해보고 올립니다 작동이 되지 않는 소스코드는 올리지 않습니다 도움이 되셨다면 아래 공감 ♡표시 한 번은 꼭 눌러주세요 : ) ) 안드로이드의 현재 앱버전 그리고 앱버전코드를 가져오는 소스코드입니다 ^^자바 : //앱버전 가져오기 private String getAppVersion(){ String appVersion =""; try { appVersion = getPackageManager().getPackageInfo(getPackageName(), 0).versionName; } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); return ""; } return appVersion; } //앱코드 가져오.. 이전 1 다음