how to start flutter project with android studio? - android

i wanted to start a flutter project but after i start android studio i get an different menu then what i saw (like here). and after that, when i start the flutter project, it is different too as you can see here. idk if it effects the outcome, but I dont know how to start a project right with these :(

here is new flutter project in the middle
then choose Flutter

Related

Android side of a Flutter project showing error

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

Android studio starting screen different the it should be

Just started learning android so i checked some online curses on how to set up my android studio project. The program version is up to date but i am getting a different new project screen the people do on videos. So i don't get to write the company domain, choose for what platform or pick the activity module. Tried to reinstall it but nothing changes. Not sure if i should/can continue the tutorials without that. Probably is just a simple mistake somewhere buti cant seem to find it.
1. picture of what android studio shows me
2. picture of what android studio shows me
3. picture of what android studio shows me
Android projects are built by Gradle build system nowadays. So you should select Gradle from the left menu and then slect the make the rest of your project configuration as you wish.

Add Android Run/Debug configuration for Flutter project

I am working with a Flutter example project where it shows how to share a FlutterView inside an Android application (and iOS also).
While working with it I tried this:
I make changes to the android project like changing the theme color, if I do hot-reload/run for main.dart I don't see the changes reflected in the running app. I have to stop it from Android Studio and run the main.dart again to see the changes.
To solve the issue I was thinking to add a run/debug configuration for Android app module. So that I could run android app and not main.dart.
Is there a way how to achieve this in Android Studio?
One solution for me was to open the android(/flutter_view/android/app) project from a new window in Android studio. I could run the app this way.
(But here I encountered another issue in case anyone has the solution).
According to my understanding you face problems when you open your project and try to run.
Android studio asks you to configure your project to be able to run...
It's easy to solve near to run button you will find "add configuration" button just press then from left side select "flutter" and put in the field "entrypoint" your main Dart file path main.dart...
EX. E:/project/lib/main.dart....
Then from top right corner press "create configuration"...
That's it.
For Configure your Flutter app on Android you have to Upgrade Gradle file..
So Go to the Tool and at you will find AGP upgrade Assistant..
It Download new Gradle file then its Config automatic..

How to start Android project

I'm beginner in Android development (but I have developed in Xamarin for Android). I downloaded project from:
https://github.com/zxing/zxing
and I'm trying to start it. I downloaded Android Studio 2.2.3 and opened the project. My Run and AVD manager buttons are grey, so I'm unable to start it. What should I do?
When I click Run -> Run... Edit configuration dialog is shown:
and after choosing it:
my Run button is grey.
At first start a new project and check if Run and AVD buttons work or not.
and also becareful about Red lines in project, because they are error. you have to fix them
First of all you have to create an AVD by clicking on AVD Manager.
Tools > Android > AVD Manager.
I hope this helps.
Looks like you're trying to run a library project. You should create a new project and add this as a dependency and use the library features in your Activities.
ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java https://github.com/zxing/zxing

how can I run hiero in android studio?

I have created a libgdx project using the installer from http://libgdx.badlogicgames.com/download.html and the Gradle extension for Android Studio.
Example for IntelliJ IDEA: Go to the Hiero class, right click and select Run Hiero.main(). On the Run >configurations popup that will appear, select the Desktop module, and click Run.
How do you do this under Android Studio?
I just found out the procedure. I leave the answer for those fellow beginners who may come across this problem like me:
go to structure tab beneath the project tab and the rest is the same as the above example for IntelliJ IDEA

Categories

Resources