[Android Studio] jcraw07:
Set Up:

Android Studio

VS Code Basic

I am basically making the app for my capstone to interface and control a raspberry pi to take picture of a biology slide at x400 zoom and image stitch it and send to a server through the app for machine learning to detect cancer.

Anyway, I cam back from break and was forced to update to AndroidX with the studio and migrated the code as I was told. But now stuff is breaking left and right. I am using Flutter+Dart to build the app and was working great and quite unsure what to do about this error. I would post a picture but the I am new so cant.

I am just lost what to do, the error description isn't helping me whatsoever. Appreciate any help.

ERROR​

:

----------------------------------------------------------------------------------------------------------------------------------------------

Launching lib\main.dart on Android SDK built for x86 in debug mode...

E:\....\..\...\.....\apollocamera1\android\app\src\debug\AndroidManifest.xml:22:18-91 Error:

Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91

is also present at [androidx.core:core:1.0.2] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).

Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:9:5-32:19 to override.

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:processDebugManifest'.

> Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91

is also present at [androidx.core:core:1.0.2] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).

Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:9:5-32:19 to override.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 4s

The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.

Building plugin adv_camera...

√ Built build\app\outputs\repo.

Building plugin camera...

√ Built build\app\outputs\repo.

Building plugin esys_flutter_share...

√ Built build\app\outputs\repo.

Building plugin image_picker...

√ Built build\app\outputs\repo.

Building plugin path_provider...

√ Built build\app\outputs\repo.

Building plugin starflut...

√ Built build\app\outputs\repo.

E:\....\..\...\.....\apollocamera1\android\app\src\debug\AndroidManifest.xml:22:18-86 Error:

Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.2] AndroidManifest.xml:22:18-86

is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).

Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:9:5-32:19 to override.

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:processDebugManifest'.

> Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.2] AndroidManifest.xml:22:18-86

is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).

Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:9:5-32:19 to override.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 4s

Gradle task assembleDebug failed with exit code 1

Exited (sigterm)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------