I wanna create a new project in Android Studio and when it will finish and it shows me some error in bottom right dialog and when I click on error box.
Below is the error image
Why it shows me this error?
How can I fix it?
Yesterday I have faced this problem and I did like this it resolved.
First uncheck the Android Apk Support and click on OK
then, Go to File --> Settings --> check on Android Apk Support and Click on OK.
I know it's a kinda weird but it works ...
Click on Enable plugin for enable it. Then it will be fine.
Related
I have a Flutter project where, all of a sudden, without me doing anything special as far as I can remember..the Android side has started to show an error, and I am totally lost, I have no idea at all of what is wrong or why that happened.
That is what I see when I open the android folder, the MainActivity on the flutter project on android studio:
I have tried calling flutter clean, restart/invalidate cache, gradle clean...and so far nothing works.
The weird thing is that the project actually runs in the emulator without any problem. And also, if I open the Android part independently on Android Studio i don't see any error.
Anyone had that before?
Android Studio version 3.3.1
Solutions of this answer do not work.
** ----- NOTE ----- **
The problem here can be (not sure at all maybe someone else can help here) that I am using a flutter package called ImagePicker, which after some code investigation, it turns out that it is using some AndrodX imports....and...as far as I am aware of...Flutter is not yet compatible with AndroidX.
But i need someone else to confirm that in order to post a solution.
This error is not really an error. This happens because android studio is set to read and edit dart not java. In order to edit the android side of a flutter project, you need to click on the android folder -> go to the flutter option -> click 'open in Android Studio'.
This will then allow you to edit the android side of your project.
Set Configure to the Android project SDK of flutter application
Step by Step
Click on File -> Project settings then select appropriate API level as per your project will solve your issue
In my android studio deployment target screen is not coming after I updated my gradle. When I click on run button nothing is coming only one msg is showing on down message bar is "run selected configuration". I am stuck here like two hours tried with version changing of gradle and all but still facing the same issue. Please if anyone has any solution to this, help me.
I found the answer to my question, actually, my adb.exe file was not showing the SDK-platform tools. That's the main reason why deploy target screen is not working. Now I uninstalled and install again platform-tools. It is working fine now.
I am making new android project from file menu->new->project and it is showing this dialog
can anyone help me to create a new project.
I am using android studio 3.0
Under Java click on Gradle and then click next. I have never seen that UI before but that is what your looking for.
When I was upgrading the Android studio to 3.1.2 at that time I was also facing the same problem. To solve this, You have to enable the Android Support Plugin. Make sure it's enabled.
Go to Setting -> Plugin -> Clicked on Android Support-> It gives you a popup to enable -> Click Ok
After that restart the Android studio. Please see the below image to enable that option.
It solved my problem, you can also try. It may help you.
Background to problem and how it all started:
I suddenly and without warning had errors related to plugins. Specifically, firebase services and firebase testing plugins not enabled. Result, could not open my project.
After lengthy research and struggle I was finally able to enable these plugins (along with others)through a miracle and opened my project BUT a new problem has now emerged.
Now the run app button for the emulator is greyed out. If i try to go to the top and click on: RUN APP ==> the "run green" button is also greyed out here (along with "debug" and "Run with coverage".
When I open a recent project in Android Studio in a new window the emulator run button is visible and I can open the Emulator without any problems. It's only suddenly this one project. It's been working just fine until now.
I updated Android Studio just prior to this as it requested it. I am using Android Studio 2.2.1.
Any suggestions highly appreciated, thanks in advance
For anyone else that has this problem the solution is found on Youtube at below link. Thanks to the uploader of this video. Saved my day!
youtube.com/watch?v=o1ApErUGZ_M
Its weird but it worked.
Just deselect and select again those two plugins .
Click Ok.
It will prompt for restart. Click Restart.
It works!
I ve got this Android project built using Gradle with the output : build successful,Andthen that I imported the project to android studio.
Whenever I try to click on the green run button, it pops up me this error to
"Edit the configuration"
It looks like you do not have any configured Android app, just click on the arrow pointing downwards which is on the left of RUN button and click on Edit Configurations. This will open a new screen where you can add a new configuration, just like in we do in Eclipse.
So the verison I was working is (on lunix) : v0.8.14
in order to fix this issue you should install this versio n : 0.9.3 on the Canary channel
download here : http://tools.android.com/download/studio/canary
Android studio 1.0 is released, try it this issue is fixed now.