When I execute the command flutter run -d linux to run my flutter app on my Linux computer I get the following error
No devices found with name or id matching 'linux'
You probably forgot to add support for your platform as stated in Desktop support for Flutter.
In case you are getting one of the following errors here are the fixes.
For Linux:
Error
No devices found with name or id matching 'linux'
Fix
flutter config --enable-linux-desktop
For Windows:
Error
No devices found with name or id matching 'windows'
Fix
flutter config --enable-windows-desktop
For MacOS:
Error
No devices found with name or id matching 'macos'
Fix
flutter config --enable-macos-desktop
Related
After then I installed Pyside6(pip install pyside6), I couldn't use it cause of error message occur.
< Error Message >
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
I tried changed path
I could solve it by add system path.
Path Name : QT_QPA_PLATFORM_PLUGIN_PATH
Path Value : address of the file name : 'qwindows.dll'
I'm trying to set up my development environment for CapacitorJS on Arch Linux.
I followed the documentation and added
CAPACITOR_ANDROID_STUDIO_PATH=/usr/bin/android-studio
to my systems environment variables (not the project) but I'm still getting the same error
[error] Unable to launch Android Studio. Is it installed?
Attempted to open Android Studio at:
/usr/local/android-studio/bin/studio.sh
You can configure this with the CAPACITOR_ANDROID_STUDIO_PATH
environment variable.
Even though It's never pointed to /usr/local/android-studio/bin/studio.sh
I ran whereis android-studio and got android-studio: /usr/bin/android-studio, so I thought that would be the correct path, but every time I run npx cap open android it says it's trying it launch from the same path and never changes
It depends how you've installed it, for example Toolbox installs it inside the user's home directory.
nano ~/.bashrc
export CAPACITOR_ANDROID_STUDIO_PATH=~/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/bin/studio.sh
locate studio.sh might be able to find it, too.
Getting these two errors when I try to build the iOS project with hosted mac agent.
lipo : error : unable to find utility "lipo", not a developer tool or in PATH [/Users/runner/runners/2.158.0/work/1/s/src/LOT/iOS/LOT.iOS.csproj]
MTOUCH : error MT5306: Failed to create the a fat library. Please review the build log. [/Users/runner/runners/2.158.0/work/1/s/src/LOT/iOS/LOT.iOS.csproj]
Have selected the xcode version 10.2.1
I changed this based on the solution given in this reference,
https://forums.xamarin.com/discussion/31493/mtouchtask-error-mt5206-failed-to-create-the-a-fat-library-please-review-the-build-log-mt5206
Some other links suggest this could be due to the license and tried sudo xcodebuild -license accept Still it doesn't work. Any leads?
Update:
After selecting the xcode 11.1, lipo : error : unable to find utility "lipo", not a developer tool or in PATH [/Users/runner/runners/2.158.0/work/1/s/src/LOT/iOS/LOT.iOS.csproj] error is resolved.
Running the command in a bash script task resolved my problem.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Basically it selects the xcode version 10.3.
i have install all prerequisite for cordova project in my system.
installed software like below.
1)node.js
2)cordova
3)phonegap
4)npm
5)jdk
6)jre
7)android - sdk
error image here error like in image.
when i have run 'cordova run android' in my project directory using CLI
then error/output like in attached image.
i have already set path in environment variables.
please suggest some solution.
This command is for running the app on an actual device. Have you set up the device and enabled USB debugging?
From the docs:
Alternately, you can plug the handset into your computer and test the
app directly:
$ cordova run android
Before running this command, you need to set up the device for testing, following procedures that vary for each
platform. In Android and Amazon Fire OS devices, you would have to
enable a USB debugging option on the device, and perhaps add a USB
driver depending on your development environmnent. See Platform Guides
for details on each platform's requirements.
If you want to run the app in an emulator instead you should use:
$ cordova emulate android
Read all about it at: https://cordova.apache.org/docs/en/5.1.1/guide/cli/index.html
How can we install .app file into iphone simulator without having any source code?
Yes, this can be done.
If you open up Finder, and go to /Users/user/Library/Application Support/iPhone Simulator/iOS version/Applications, you will find directories for all the apps installed on the simulator.
Just zip up that top level folder for the app, and have the other user drop it in the same directory. Works like a charm.
NOTE: I think you may have to compile it for that specific version of iOS before sending it over to them.
Source : Is there a way to test iOS builds on simulator without the source code?
There are three simple steps to install .app file on iOS simulator.
STEP 1:Start iOS simulator
There are two ways to start iOS simulator
1. Using XCODE: Open Xcode and navigate to
**XCODE => Open Developer Tool => iOS Simulator**
2: Using Terminal: Type following command in terminal
**open -a "iOS Simulator" --args -CurrentDeviceUDID <Device UDID>**
Note: Do not forget to change the DeviceUDID. You can check the UDID of running simulator by using following command:
xcrun simctl list
The UDID is the alpha numeric value in highlighted box and when simulator will booted it’s status will be “Booted” instead of “Shutdown”.
STEP 2: Installation:
When device booted completely, use following command to install .app file in simulator
xcrun simctl install booted
STEP 3: Launch your app :
You can launch your app by two ways
1. Tap on the app or
2. Write the following command on terminal
xcrun simctl launch booted