Android Studio Virtual Device Funktioniert nicht

SaniMatthias

SaniMatthias

Neues Mitglied
0
Ich probiere seit geraumer Zeit Android Studio aber immer wenn ich den Android emulator hypervisor driver installieren will kommt folgende Fehlermeldung IMG_20231027_233112.jpg
 
@SaniMatthias

Die Emulatoren laufen nur recht schlecht, sind rudimentär und nicht auf allen Hardwarekonstellationen installierbar .
Diese erfordern auch eine recht genügende Ausstattung der Hardware (z.b. min 16GB Ram - besser 32GB/64GB)
Sie sind auch BIOS abhängig.


Deshalb eine Entwicklung möglichst mittels eines physischen Devices durchführen ( USB / ADB)
 
Zuletzt bearbeitet:
  • Danke
Reaktionen: SaniMatthias
@swa00 ich wollte es schon mit einem physischen testen aber da meint er eine app blockiert den Zugriff
 
Ist denn das Device für den USB Debugmodus vorbereitet ?
 
@swa00 sollte es gibt es da spezielle Dinge zu beachten?
 
Was bedeutet "sollte es" ? Ja oder nein ?:)

Ist das Device in AS auswählbar ?
Wie hast du denn deinen Compile (apk/Bundle) auf das Device übertragen ?
 
Noch gar nicht wenn ich das Handy anstecken dann auf ja drücken will meint er das eine app das nicht will
 
Schön , dass du meine Fragen nicht komplett beantwortest - ich bin keine KI, sondern ein Mensch ....

a) Am Device muss der Entwickler Modus eingeschaltet sein, erst dann kann man Debuggen ( Grundvoraussetzung zum Entwickeln mit USB)

b) Verwendet man eine APK und kopiert sie auf das Device , so muss diese APK mit einem Schlüssel signiert sein und auf dem Device unbekannte Quellen zugelassen werden.
 
Zuletzt bearbeitet:
Der Entwickler Modus ist angeschaltet ich habe keine apk transferiert
 
Letzter Versuch meinerseits : Ist das Device in AS zu sehen und anwählbar ... ?
 
Ja es kommt ja auch schon die Anfrage ob ich das akzeptiere und dann kommt eben das eine app das nicht möchte
 
Und was sagt der Compiler, wenn du compilierst ?
Was sagt das Logcat ?
 
Es geht ja nicht einmal so weit das sich mein Gerät verbindet den wenn ich auf zustimmen drücken will geht es nicht.
 
öhm ,

ich habe dich doch gefragt , ob dein Device in AS auswählbar wäre -
Darauf antwortest du mit :
SaniMatthias schrieb:
Ja es kommt ja auch schon die Anfrage
Also doch nein !

Dann ist dein Device nicht richtig für den USB Debugmodus eingestellt
(Enwickleroptionen "EIN", Usb-Debumodus "EIN")

Und USB Kabel mit Datenübertragung verwenden - nicht nur ein Kabel für das Laden.

Darauf achten , dass dein Projekt auch für die Zielversion deines Device eingestellt ist.
Wenn das nicht stimmt , wird auch deine App nicht darauf laufen (oder verweigert)
 
Wie auch schon oben erwähnt die Einstellungen sind Richtung nur mein Handy meint eine app erlaubt das nicht
 
Du sprichst in Rätseln :
Der Debug Modus hat nichts mit einer App zu tun .

Mach doch mal bitte einen screenshot von der Meldung
 
Also ich Habs gerade nochmal nach dem neu Start meines Handys probiert und jetzt geht es aber wie starte ich jetzt meine app auf dem Handy wenn es angesteckt ist?
 
Complieren .....

1698573796298.png
 
Zuletzt bearbeitet:
1. Dependency 'androidx.navigation:navigation-common:2.7.4' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.

:app is currently compiled against android-33.

Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 34.

Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).

2. Dependency 'androidx.navigation:navigation-runtime:2.7.4' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.

:app is currently compiled against android-33.

Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 34.

Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).

3. Dependency 'androidx.navigation:navigation-fragment:2.7.4' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.

:app is currently compiled against android-33.

Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 34.

Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).

4. Dependency 'androidx.navigation:navigation-ui:2.7.4' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.

:app is currently compiled against android-33.

Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 34.

Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).

5. Dependency 'androidx.activity:activity-ktx:1.8.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.

:app is currently compiled against android-33.

Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 34.

Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).

6. Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.

:app is currently compiled against android-33.

Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 34.

Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).

beim starten der app (I'm build modus) kommt das
Beiträge automatisch zusammengeführt:

@swa00 hab das jetzt in einem leeren projekt getestet jetzt kommt nur mehr der fehler. Wie kann ich den beheben?
An issue was found when checking AAR metadata:

1. Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.

:app is currently compiled against android-33.

Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 34.

Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
 
Zuletzt bearbeitet:
Du musst nun auch das Projekt/Source auf die aktuellen Richtlinien von Google ausrichten.
Vorlagen(Templates) sind nur Vorlagen - wie der Name schon sagt - sie wissen nicht, was du tun möchtest.

In dem Falle musst Du die erforderlichen Bibliotheken verwenden und die die ZielPlattform API 34 unterstützen.
All diese Einstellungen nimmst du dann im Gradle vor .

Welche Bibliotheken du in deinem Projekt verwenden möchtest , bestimmst nur du.


1. Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.

Android API reference | Android Developers
 
Zuletzt bearbeitet:

Ähnliche Themen

5
Antworten
0
Aufrufe
1.155
586920
5
D
Antworten
23
Aufrufe
2.567
Data2006
D
S
Antworten
4
Aufrufe
997
Sempervivum
S
Zurück
Oben Unten