I know this might have been asked before, I have recently installed Solus Linux on my computer and I am trying to get Andoird Studio working on it for some time, so far I am not having any luck. First Issue - I am not able to add Flutter to the PATH Second Issue - I am getting this error when running the project
Could somebody here help me with both issues?
Maybe it can help future devs. I had similar problem with the exception
Unsupported Android Plugin version 4.1.3
In my case I had to specify build flavor for the app:
flutter run --flavor <flavor-name>
then it worked
Doing this solved my problem
dev
as Build flavor--debug
as Additional build argsI think at the moment, there is a problem of incompatible version.
Reference: from this thread
To fix it, I revert back Android Plugin from 4.1.2 to 4.1.0.
Modify the root build.gradle:
buildscript {
ext.kotlin_version = '1.4.20'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
...
}
}
Note: I, currently, use Gradle 6.7
In my case, I had to edit my configuration settings:
Worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With