Closed thoughtassassin closed 4 years ago
I hit into this as well!
Try ./gradlew clean
first.
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)
The best thing to do is delete the .gradle
file and then run ./gradlew clean
Thanks Rishabh for posting these solutions.
I could only fix this problem by deleting the .gradle and .idea directories.
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
For Flutter (Probably will work for different frameworks as well). I have posted an answer on Stack Overflow.
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.
When I try to run
./gradlew compile -PnativeCompile
I get the error: