Excuse me guys, I'm sorry. I want to ask, can I install flutter on my Android Mobile ?? I tried to search on Google but the results failed, from trying to install on Termux but failed, try to install on VHEditor but the problem is I can't install flutter SDK in Environment Variable. maybe you guys can answer my question.so, can i build flutter apk in android mobile??
I am assuming you meant building an apk version of the app instead of running it on an emulator.
To do that run in your IDE terminal or flutter console
Flutter build apk
I guess there is no way of installing Flutter on phone, The best way to use flutter on phone is to ssh into a server and compile it's apk
yes we can build flutter apps in mobile through termux and here is simple guide for reference but i am still giving simple one liner installing command but for "how to use" please check reference link
curl -s https://raw.githubusercontent.com/Hax4us/flutter_in_termux/master/install.sh | bash -s
reference : https://www.hax4us.com/2021/12/install-flutter-in-termux.html?m=1
Related
Good morning everyone, I have an application made in Expo, and this week I was going to configure Admob to be able to upload it to the Playstore, but I was surprised by the discontinuity of Admob, requiring a whole new configuration, following the steps below for a simple test in a new blank app I'm not able to create the file to emulate and be able to follow the tests, could you check what I did wrong?
In the "Windows10" terminal:
1 - expo init test
2 - I go to the test folder
3 - expo install expo-dev-client
4 - expo install react-native-google-mobile-ads
Then I put this information in App.js inside Visual Studio code
"react-native-google-mobile-ads":{
"android_app_id": "ca-app-pub-3940256099942544~3347511713",
"ios_app_id": "ca-app-pub-3940256099942544~1458002511"
}
test-only ids
In the terminal again
5 - npm install -g eas-cli
6 - easy login
7 - eas build:configure ( Here I select Android )
In this step, a new file appears in the folder, the eas.json, doing the 2 ways below it gives an error:
"android":{
"simulator":true
}
and even without adding anything
at the terminal
8 - eas build -p android --profile development --local
Now that there is a problem, it keeps giving the error below
"Android builds are supported only on Linux and macOS",
I use Windows 10, can I solve this somehow?
this is the video of the developer who did the above methods, in her case he did it via MAC, but I only have Windows 10, can I solve this somehow? what is my best option?
Thank you all in advance and sorry for the English, I'm Brazilian and I'm using Google translator.
This helped me!
I installed Ubuntu on wsl on my windows machine
Installed node and npm
Used ubuntu to create the build file
yes, just open Ubuntu in your project directory and execute step
EAS build -p android --profile development --local
then drop the generated APK file on your emulator or android and then switch back to PowerShell and execute step 9
There is another way to solve this, but this might be a longer route
eas build --profile development --platform android
This uses the EAS server to build the APK. So you still have to download it and install on your device
I have got my expo project and I ran 'expo eject' to run it in the react-native CLI. It works on the iOS with some adjusting (thanks to the guys on GitHub) however I can't seem to get my android to work. It's saying
'Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.'
I have tried building a new react-native app (without using expo) and it works no problem.
To me the ejected project is not linking to the environment somewhere. I have tried updating android studio, going through the environment setup and update gradle (that caused more issues haha)
Has anybody else come across this please?
I have worked out the solution around this. Run these next steps soon after you do 'expo eject' (As it suggests in the console after eject runs)
Next steps
› 💡 You may want to run npx #react-native-community/cli doctor to help install any tools that your app may need to run your native projects.
› 🔑 Download your Android keystore (if you're not sure if you need to, just run the command and see): expo fetch:android:keystoreNext steps
I installed flutter and android studio following the steps in the flutter official page. I did it a month ago and then I used flutter doctor and I did not get any problems back then.
Now I tried again but I keep getting those errors
I have Android Studio installed (version 4.1)
If you are not installing android studio into the recommended location. Then you need to link it back for Flutter doctor to find it.
I install android studio to my home dir "/home/{$USER}/android-studio"
The quick and dirty way is cd into your "/opt" folder then symlink it
$ cd /opt
$ sudo ln -s /home/me/android-studio android-studio
Then run flutter doctor (or with a -v to see more detail) you should able to see it finds it.
First of all, run the command as said flutter doctor --android-licenses.
It will show you the licenses and you just have to type Y in the command line to accept them.
Secondly,it seems can't find Android Studio. If you have that, I suggest you to uninstall and re-install it clearly. Of course you should also install the Flutter plugin in Android Studio.
When everything is done just use flutter doctor. The last warning "Connected device" is going to be visible until you don't use an emulator or connect via USB debugging your phone.
With regards to Flutter not being able to find Android Studio: I had the same issue since upgrading to Android Studio 4.1 a couple of days ago. Since I use VS Code it didn't bother me too much. However yesterday I received an update notification from Flutter and after the update the problem went away.
i have completed all the steps like creating keyStore , changing in build.gradle etc.
but i am facing a issue while running this command
flutter build apk --release
whenever i run this command terminal shows that
I am using Linux
flutter: command not found
Have you added installdirectory/flutter/bin to your path variables?
Can you Give us a little more context, like , are you on Windows or mac or Linux?
you should locate flutter in path click here
I have a portable version of vscode on my Windows PC. I have flutter installed as well. flutter doctor does not detect my VS Code. I'm guessing it is because its not installed via an installer. It was just copy pasted into a folder.
How can I tell flutter where my VSCode is and that it is my preferred editor without installing it (since I do not have admin rights on the PC)? I tried flutter config -h and it only lists the following options
--[no-]analytics Enable or disable reporting anonymously tool usage statistics and crash reports.
--clear-ios-signing-cert Clear the saved development certificate choice used to sign apps for iOS device deployment.
--gradle-dir The gradle install directory.
--android-sdk The Android SDK directory.
--android-studio-dir The Android Studio install directory.
We only look in the default install locations for each platform. You can find the code here:
https://github.com/flutter/flutter/blob/217b2bdaa18de2bfddf213bc920b1337e77f1be3/packages/flutter_tools/lib/src/vscode/vscode.dart#L87-L154
You're not missing out on anything by not having it found, all Doctor does is lists it if it's found and tells you if you're missing the Dart Code extension.