Error message:

  • What went wrong:

    A problem occurred configuring project ‘:app

SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting thesdk.dir path in your project’s local properties file at ‘c:\temp\MyProject\android\local.properties

Solution: Set the corresponding environment variables

You are advised to add the SDK platform-tools subdirectory to the system PATH environment variable. Finally, set the ANDROID_HOME environment variable to the directory where your SDK is located.

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: