Der befehl adb ist entweder falsch geschrieben oder konnte nicht gefunden werden

When I click Android Studio, Open a project and then click Android Monitor the Monitor/logcat says that the emulator-5554 is offline/diconnected. SOmetimes there stands "No connected devices".

I uninstalled and intsalled Android Studio. I tried to wipe the data of the emulator. I deleted the emulator and installed it again. I trie in tools the SDK manager installing something but it failed. I tried in Settings of Android Studio switching off Instant run but nothing. I tried giving in the Terminal adb devices but it say that it can`t find them or any commands i give in it cant find. This is for a Course named Android and Developer course and i first noticed this when I tried activating the code and the emulator.

06/15 15:01:32: Launching app $ adb push C:\Users\Dayan\Downloads\AnSt\02.05\DemoApp\app\build \outputs\apk\app-debug.apk /data/local/tmp/com.robpercival.demoapp $ adb shell pm install -r "/data/local/tmp/com.robpercival.demoapp" pkg: /data/local/tmp/com.robpercival.demoapp Failure [INSTALL_FAILED_DEXOPT] $ adb shell pm uninstall com.robpercival.demoapp DELETE_FAILED_INTERNAL_ERROR Error while Installing APK

Event Log 14:49:38 Gradle sync started 14:49:52 * daemon not running; starting now at tcp:5037 14:49:52 * daemon started successfully 14:50:44 Gradle sync completed 14:50:44 Executing tasks: [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources] 14:50:55 Gradle build finished in 10s 710ms 15:01:02 Executing tasks: [:app:assembleDebug] 15:01:30 Gradle build finished in 28s 681ms 15:02:24 Session 'app': Error Installing APK

C:\Users\Dayan\Downloads\AnSt\02.05\DemoApp>adb devices Der Befehl "adb" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

I expected in logcat to see Username: .......... and Password:.......... But now i dont see anything only a ery long text in logcat which i cant understand

I want to build a new App without Expo and without Yarn.

So I launched a new Projekt with react-native init and navigated inside the folder starting the Metro Server (works fine) - but when I want to start the android App on my emulator (AS Emulator) I get this Error:

PS C:\Dev\Programmierung\FitnessApp\FitnessApp> npx react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 967 file(s) to forward-jetify. Using 6 workers... info JS server already running. Der Befehl "adb" ist entweder falsch geschrieben oder konnte nicht gefunden werden. 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:stripDebugDebugSymbols UP-TO-DATE Compatible side by side NDK version was not found. > Task :app:installDebug 01:14:59 V/ddms: execute: running am get-config 01:15:00 V/ddms: execute 'am get-config' on 'emulator-5554' : EOF hit. Read: -1 01:15:00 V/ddms: execute: returning Installing APK 'app-debug.apk' on 'Nexus_5X_API_29_x86(AVD) - 10' for app:debug 01:15:00 D/app-debug.apk: Uploading app-debug.apk onto device 'emulator-5554' 01:15:00 D/Device: Uploading file onto device 'emulator-5554' 01:15:00 D/ddms: Reading file permision of C:\Dev\Programmierung\FitnessApp\FitnessApp\android\app\build\outputs\apk\debug\app-debug.apk as: rwx------ 01:15:00 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk" 01:15:00 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read: -1 01:15:00 V/ddms: execute: returning 01:15:00 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk" 01:15:00 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read: -1 01:15:00 V/ddms: execute: returning Installed on 1 device. Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 4s 27 actionable tasks: 2 executed, 25 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... Der Befehl "adb" ist entweder falsch geschrieben oder konnte nicht gefunden werden. error Failed to start the app. Run CLI with --verbose flag for more details. Error: Command failed: adb shell am start -n com.fitnessapp/com.fitnessapp.MainActivity at makeError (C:\Dev\Programmierung\FitnessApp\FitnessApp\node_modules\execa\index.js:174:9) at Function.module.exports.sync (C:\Dev\Programmierung\FitnessApp\FitnessApp\node_modules\execa\index.js:338:15) at tryLaunchAppOnDevice (C:\Dev\Programmierung\FitnessApp\FitnessApp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\tryLaunchAppOnDevice.js:57:22) at C:\Dev\Programmierung\FitnessApp\FitnessApp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:104:39 at Array.forEach (<anonymous>) at runOnAllDevices (C:\Dev\Programmierung\FitnessApp\FitnessApp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:102:48) at processTicksAndRejections (internal/process/task_queues.js:94:5) at async Command.handleAction (C:\Dev\Programmierung\FitnessApp\FitnessApp\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:186:9)

I already tried to fix it but with no luck.

Before this error I had this Error:

Task 'installDebug' not found in project ':app'.

My Project Android Folder is selected in AS and the Emulator is running.

asked Apr 15, 2020 at 11:19

Der befehl adb ist entweder falsch geschrieben oder konnte nicht gefunden werden

yesIamFadedyesIamFaded

1,7651 gold badge13 silver badges35 bronze badges

I got this error every time.

Follow this steps to get rid of it:

1) Open Android Studio.

2) Open your android folder of react native project in android studio.

Now it'll start downloading all the necessary files

3) Click on run button.

Now once application gets installed in your android device you can use react-native-run-android

answered Apr 15, 2020 at 11:30

Der befehl adb ist entweder falsch geschrieben oder konnte nicht gefunden werden

6

take the terminal goto your project folder using cd command and type npx jetify.

answered Apr 15, 2020 at 11:43

Der befehl adb ist entweder falsch geschrieben oder konnte nicht gefunden werden

2

Not the answer you're looking for? Browse other questions tagged android react-native android-studio gradle or ask your own question.

Wie ADB installieren?

Installiert ADB auf eurem PC, wie oben beschrieben. Verbindet euer Android-Gerät per USB-Kabel mit eurem PC (Entwickleroptionen und USB-Debugging müssen in Android aktiviert sein). Öffnet eine Eingabeaufforderung. Tippt den Befehl adb devices ein, um zu sehen, ob ADB euer Android-Gerät findet.

Was ist ADB Mode?

Die Android Debug Bridge (ADB) ist eine Schnittstelle zwischen Eurem Computer und Eurem Android-Smartphone. Über sie lassen sich etliche Befehle per USB-Kabel an Euer Smartphone senden. So könnt Ihr etwa Euer Smartphone rooten, eine andere Firmware aufspielen oder ein Update installieren.

Wie ADB starten?

Dazu gehören eine Dateiübertragungsfunktion genauso wie die Möglichkeit, mittels ADB Befehle auf dem Android-System auszuführen und auf Komponenten des System zuzugreifen. Die ADB lässt sich über ein Kommandofenster, "cmd" bei Windows, starten und bedienen.

Wo ist ADB?

Setup des Android-Smartphones für die ADB Aktivieren Sie in den Systemeinstellungen unter "Entwickler-Optionen" das "USB-Debugging" - erst so reagiert das Smartphone nach der Verbindung mit dem PC via USB-Kabel auf ADB-Befehle. Für den vollen Funktionsumfang benötigen Sie auf Ihrem Gerät auch Root-Zugriff.