apache / openwhisk-cli

Apache OpenWhisk Command Line Interface (CLI)
https://openwhisk.apache.org/
Apache License 2.0
104 stars 99 forks source link

Could not open settings remapped class cache #483

Closed thoughtassassin closed 4 years ago

thoughtassassin commented 4 years ago

When I try to run ./gradlew compile -PnativeCompile I get the error:


Could not open settings remapped class cache for 4aa2w8exvmcgroo5a83t46f1t (/Users/<user>/.gradle/caches/5.5.1/scripts-remapped/settings_cfhcy5h0yhbjvj6hn7n8sqoh7/4aa2w8exvmcgroo5a83t46f1t/settings607e3b0704a468e3ccebfac8f1ad43c0).
> Could not open settings generic class cache for settings file '/Users/<user>/Downloads/openwhisk-cli-master/settings.gradle' (/Users/<user>/.gradle/caches/5.5.1/scripts/4aa2w8exvmcgroo5a83t46f1t/settings/settings607e3b0704a468e3ccebfac8f1ad43c0).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 57```
RxMz commented 4 years ago

I hit into this as well!

rabbah commented 4 years ago

Try ./gradlew clean first.

RxMz commented 4 years ago

Running ./gradlw itself would give the same error. I was able to resolve it by opening Android Studio and syncing grade (building a react native project)

RxMz commented 4 years ago

The best thing to do is delete the .gradle file and then run ./gradlew clean

rabbah commented 4 years ago

Thanks Rishabh for posting these solutions.

muganwas commented 4 years ago

I could only fix this problem by deleting the .gradle and .idea directories.

midhunadarvin commented 4 years ago

Running ./gradlw itself would give the same error. I was able to resolve it by opening Android Studio and syncing grade (building a react native project)

This solution only worked for me. Mine was a react-native project

mendelg commented 3 years ago

For Flutter (Probably will work for different frameworks as well). I have posted an answer on Stack Overflow.

kaxi1993 commented 1 year ago

Running ./gradlw itself would give the same error. I was able to resolve it by opening Android Studio and syncing grade (building a react native project)

This solution only worked for me. Mine was a react-native project

I resolved it in the same way, opening Android Studio and syncing.