[Solved] A problem occurred configuring project ‘:path_provider_android’.

2023/03/31 2:21

Error

> Could not open proj generic class cache for build file ‘C:\Users\ר Ī Mmagicbookpro\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_android-2.0.24\android\build.gradle’ (C:\Users\ר Ī Mmagicbookpro\.gradle\caches\7.5\scripts\ort01p669xmumymo0xlksof0).

> BUG! exception in phase ‘semantic analysis’ in source unit ‘_BuildScript_’ Unsupported class file major version 63

> Failed to notify project evaluation listener.

> Could not get unknown property ‘android’ for project ‘:path_provider_android’ of type org.gradle.api.Project.

Could not get unknown property ‘android’ for project ‘:path_provider_android’ of type org.gradle.api.Project.

….

Solution

  1. There are Chinese or special characters in your username
  2. Is the jdk version too low? Run flutter doctor to check the environment

 

Leave a Reply

Back to top