I wanted to run "Owl App" from Jetpack Compose sample apps but i got this error:
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.
What's it for?
This issue causing due to using of newer version of gradle in the project.
You need to use the latest canary version of Android Studio.
Related
I was going to upgrade from Android Studio Bumblebee to Android Studio Dolphin. However, I seem to get an unexpected warning from Android Studio:
As you can see the text in red, it shows that newer Android Studio's build does not support Kotlin! However, in details of Android Studio Dolphin, and image shows Kotlin files being programmed, which means Android Studio Dolphin's build actually supports Kotlin:
Should I update or not, and how should I fix this error, as I am a Kotlin Programmer.
Can somebody please help? Would appreciate it.
Edit
As for the Kotlin version, I have the latest Kotlin Version already:
Full answer:
I faced with the same issue and after research I found people say that reinstalling Kotlin plugin or removing it and update Studio should solve the issue, because Dolphin already includes the Kotlin plugin by default.
BUT For sure you should NOT remove the Kotlin plugin, because otherwise Android Studio will fail launching and after that you need to find on your PC the file named 'disabled_plugins.txt' and remove from it Kotlin. OR completely remove Android Studio and reinstall it from the scratch.
Personally I ignored this issue and just updated the Studio. Works well and Kotlin plugin installed. Also I noticed that before update I had Kotlin version 1.7.10 and AS didn't ask for update the plugin. After update I've got 1.7.20.
Good luck :)
I am using Android Studio 4.1.3, but I get this error when I run the Jetcaster project (one of the examples of Google code).
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer.
You currently need a Canary version of Android Studio to open Jetpack Compose projects.
https://developer.android.com/studio/preview
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.3 or newer.
For Jetpack Compose Sample Apps you currently need the Arctic Fox Canary build of Android Studio, which can be found here: https://developer.android.com/studio/preview
Details on how to try the sample apps are on this page: https://developer.android.com/jetpack/compose/setup
Once you have the correct version of Android Studio, all you need to do is select "Import an Android code sample", type compose in the search bar to select the sample app that you want, click Next and Finish.
I'm using Kotlin kapt version 3, whenever there is a problem with databinding, the build from Android Studio fails with a very generic error:
Error:Execution failed for task ':app:kaptDev21DebugKotlin'.
> Internal compiler error. See log for more details
When I run the same task from the console, the real problem shows up. Somehow the AS doesn't show this error in message window.
I'm using Android Studio version 2.3.3
You can see the error in Gradle Console, something similar to this :
Android Studio 3.0 and later version of android studio support Kotlin better. AS 3.0 comes with default support with Kotlin as AS 2.3 requires a plugin to be installed.
Android Studio Team from google and IDEA intellij Team from JetBrain working together to make Kotlin compatible with Android Studio.
Right now 3.0 version comes with Canary version(Preview version) and every week a new preview version (Canary 1, Canary 2 ... and so on) rolls out fixing reported bugs.
So you should try Android Studio 3.0 Canary 9 latest version as of now.
If still problem persists, report this bug.
I am trying update latest gradle android plugin. I have tried with '3.0.0-alpha1' initially and now I am using'3.0.0-alpha3'.
With '3.0.0-alpha1' version, I got an error 'not found' and after that I switched to '3.0.0-alpha3', with that I got below error.
Error :- 'getMainOutputFile is no longer supported. Use getOutputFileName if you need to determine the file name of the output'.
I fixed that error also.
But , I just want to what is the difference between '3.0.0-alpha1' and '3.0.0-alpha3', Thanks in advance.
The best info I could find was Android Studio 3.0 Canary 3 is now available
We have just released Android Studio 3.0 Canary 3 to the Canary and Dev Channels. The Android Gradle Plugin 3.0.0-alpha3 was also released through maven.google.com. This release has fixes to Gradle, Kotlin, and many other fixes. We continue to fix bugs in all areas of Studio 3.0 as we stabilize our features, so please continue to pass on feedback.
And from Android Studio 3.0 Canary 2 is now available
We have just released Android Studio 3.0 Canary 2 to the Canary and Dev channels. The Android Gradle Plugin 3.0.0-alpha2 was also released through maven.google.com.
This release includes fixes focused on:
Kotlin support
APK Analyzer
Android Profilers
Android Instant Apps
Android Gradle plugin
Native / C++ Issues
and general bug fixes
You might try searching the issue tracker for your specific issues too.