When I create an 'empty compose activity' project and click run it gives me the following error '':app:checkDebugAarMetadata and One or more issues found when checking AAR metadata values:' in Bumblebee 2021.1.1 beta 2
Does anyone know what the problem is? Thank you for your help
CodePudding user response:
Update your Compose to the latest version or try one of the beta versions. Also, make sure you're using the correct gradle plugin version. The Kotlin compiler must also match. And use the correct Compose dependency versions. When using beta versions of Android Studio, you need to make sure these plugins and dependencies are set correctly. Don't rely on the Compose project template setting these.
CodePudding user response:
First of all, Help > Check for Updates > Update and Restart
If it updates successfully, the gradle plugin will automatically be updated (or you will be prompted to update)
Next, check the web for the Kotlin Compiler version Required to work with your compose verision. Compose version will be defined in your project-level build (.gradle file), then update the Kotlin version in the same file (if you don't find it, let me know).
Then, just Sync Project with Gradle and you should not receive the error any more. Also, one more thing that also helps, is trying to run the build with --scan, which logs full output in the logcat window. See the build tab in Android studio and find a line that has a link 'run with --scan' in blue. Just click on it, then search through the produced logs to obtain the exact error message. This will help you be specific about your issue and attract more answerers to your rescue.