i am new to flutter and android at all
first i wanted to run basic flutter program on my emulator(memu) android studio does not found memu so i go to memu file location and write this command on cmd:
adb connect localhost:21503
after that i got new error and this is it:
Launching lib\main.dart on G011A in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install B:\Android\jadi\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_VERIFICATION_FAILURE]
Error launching application on G011A.
what should i do plz help...
Related
Parameter format not correct -
Running Gradle task 'assembleDebug'... 793.6s
√ Built build\app\outputs\flutter-apk\app-debug.apk.
cmd: Can't find service: activity
Installing build\app\outputs\flutter-apk\app.apk... 6.1s
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:\flutter project\seoondproject\build\app\outputs\flutter-apk\app.apk: cmd: Can't find service: package
Error launching application on sdk gphone x86.
I am starting to build an Android application using React Native. But when I tried to run the application using "react-native run-android" command, it runs into a problem. This is what I have done so far.
I installed the react-native command line running the following commands
npm install -g react-native-cli
Then I created the react-native project running the following command.
react-native init {ProjectName}
At this point, I already have the Andriod Studio installed I have been doing the native Android development. So, I opened the Android Studio and started an emulator.
Then within the React Native project, I run the following command to start the project.
react-native run-android
Then I got the following error.
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 903 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
'adb' is not recognized as an internal or external command,
operable program or batch file.
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
> Task :app:installDebug
Installing APK 'app-debug.apk' on 'Pixel_XL_API_30_2(AVD) - 11' for app:debug
Installed on 1 device.
BUILD SUCCESSFUL in 6s
29 actionable tasks: 2 executed, 27 up-to-date
info Connecting to the development server...
warn Failed to connect to development server using "adb reverse": spawnSync adb ENOENT
info Starting the app...
'adb' is not recognized as an internal or external command,
operable program or batch file.
error Failed to start the app.
Error: Command failed: adb shell am start -n com.testreactnative/com.testreactnative.MainActivity
In an attempt to fix that, I added the following environment user variables pointing to the right location.
JAVA_HOME: C:\Program Files\Android\Android Studio\jre\jre
ANDROID_HOME: C:\AndroidSDK
Then I tried running the command again. It is still throwing the same error. What's wrong with my configuration and how can I fix it?
You see this error in console that says 'adb' is not recognized as an internal or external command,
This means that adb path is not added in Environment Variables
My adb path is = C:\Users\karti\AppData\Local\Android\Sdk\platform-tools
Find yours and add it to Path in Environment Variables
When I am running react-native run-android to run android app in debug mode in my Oneplus nord, I am encountered with following error.
Unable to install /android/app/build/outputs/apk/debug/app-debug.apk
com.android.ddmlib.InstallException: EOF
Execution failed for task ':app:installDebug'.
com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: EOF
Hence, Cannot install app in One plus physical device.
Try using these commands:
adb kill-server
adb start-server
npx react-native run-android --no-jetifier
When run react-native run-android show error :
Task :app:installDebug FAILED
com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_VERSION_DOWNGRADE
the problem was that the application was already installed in the emulator, I deleted the emulator application and it worked
I'm making an Android app with the framework Cordova. It's all right until the command "cordova run". The terminal gives me this error:
ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: pkg: /data/local/tmp/MainActivity-debug.apk
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
rm failed for -f, No such file or directory
ERROR running one or more of the platforms: Error: /home/francesco/hello/platforms/android/cordova/run: Command failed with exit code 8
You may not have the required environment or OS to run this project
francesco#francesco:~/hello$ adb devices
List of devices attached
LGOTMS79a92e5a device
I'm using Ubuntu 14.04. Thank you in advance for the help.