0

When I change, for example, the version of the application, I am asked to do synchronization. How to perform synchronization by command line? ./gradlew clean ./gradlew sync etc. not working.

java.lang.IllegalArgumentException: Unsupported class file major version 63

When I do the synchronization manually, then the commands./gradlew clean etc.. they work

Gradle 7.4.2

openjdk version "19" 2022-09-20

I need to do this from command line

Trennel
  • 1
  • 1
  • Does this answer your question? [Android Studio how to run gradle sync manually?](https://stackoverflow.com/questions/29565263/android-studio-how-to-run-gradle-sync-manually) Also see: [How to list all tasks for the master project only in gradle?](https://stackoverflow.com/q/38362977/295004) – Morrison Chang Apr 12 '23 at 21:58

1 Answers1

0

All gradle commands, just following this steps: enter image description here And you will see thing like this (all command list): enter image description here

if you just want sync your project,just click this button: enter image description here

Godrick
  • 71
  • 5
  • How I can run sync from command line? – Trennel Apr 13 '23 at 06:56
  • There is NO "sync" command . According to my understanding, you probably taking about "./gradlew build". Or just [click here](https://stackoverflow.com/questions/29565263/android-studio-how-to-run-gradle-sync-manually?noredirect=1&lq=1) may help you –  Godrick Apr 13 '23 at 08:00