Hi! I have my first app running in Ionic but now I need to run into my device because it is a databse app SQLITE so far so good using Android Studio to debug and use it but now I wanna use LiveReload to see the changes live in my device.
My device is connected by USB and it works fine when I use AndroidStudio but I get an error when I try to use LiveReload
PS C:\dev\Angular\mylogin> ionic capacitor run android -l --external
? Which device would you like to target? (Use arrow keys)
> Alcatel 5041C (JB5HHYAAY5IZKN4P)
Pixel_3a_API_33_x86_64 (emulator) (Pixel_3a_API_33_x86_64)
Pixel 4 API 33 (emulator) (Pixel_4_API_33)
Pixel_5_API_33 (emulator) (Pixel_5_API_33_1)
capacitor.cmd run android --no-sync --target JB5HHYAAY5IZKN4P
[capacitor] × Running Gradle build - failed!
[capacitor] FAILURE: Build failed with an exception.
[capacitor] * What went wrong:
[capacitor] A problem occurred configuring root project ‘android’.
[capacitor] > Could not resolve all files for configuration ‘:classpath’.
[capacitor] > Could not resolve com.android.tools.build:gradle:8.0.0.
[capacitor] Required by:
[capacitor] project :
[capacitor] > No matching variant of com.android.tools.build:gradle:8.0.0 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute ‘org.gradle.plugin.api-version’ with value ‘8.0.2’ but:
[capacitor] - Variant ‘apiElements’ capability com.android.tools.build:gradle:8.0.0 declares a library, packaged as a jar, and its dependencies declared externally:
[capacitor] - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
[capacitor] - Other compatible attribute:
[capacitor] - Doesn’t say anything about org.gradle.plugin.api-version (required ‘8.0.2’)
[capacitor] - Variant ‘javadocElements’ capability com.android.tools.build:gradle:8.0.0 declares a component for use during runtime, and its dependencies declared externally:
[capacitor] - Incompatible because this component declares documentation and the consumer needed a library
Any cluees ?
Thks In Advance