Task 'assembleFIRDebugEnabledDebug' not found in root project 'android' - android

When I run flutter run --flavor FIRDebugEnabled
I get the error:
FAILURE: Build failed with an exception.
* What went wrong:
Task 'assembleFIRDebugEnabledDebug' not found in root project 'android'.
I also tried with flutter run --flavor FIRAnalyticsDebugEnabled
But I get similar error:
FAILURE: Build failed with an exception.
* What went wrong:
Task 'assembleFIRAnalyticsDebugEnabledDebug' not found in root project 'android'.
My goal is to use firebase analytics debug view https://firebase.google.com/docs/analytics/debugview
What am I doing wrong ?

Related

Failing to build KMM project - with an exception "Task 'assembleXCFramework' is ambiguous in root project 'Project' "

When I try to build the XCFrameworks in KMM project, ending up with the exception. How can I solve this and build XCFrameworks?
FAILURE: Build failed with an exception.
What went wrong:
Task 'assembleXCFramework' is ambiguous in root project ‘P’roject. Candidates are: 'assembleGcidProtocolDebugIosFatFrameworkForXCFramework', 'assembleGcidProtocolDebugIosSimulatorFatFrameworkForXCFramework', 'assembleGcidProtocolDebugMacosFatFrameworkForXCFramework', 'assembleGcidProtocolDebugTvosFatFrameworkForXCFramework', 'assembleGcidProtocolDebugTvosSimulatorFatFrameworkForXCFramework', 'assembleGcidProtocolDebugWatchosFatFrameworkForXCFramework', 'assembleGcidProtocolDebugWatchosSimulatorFatFrameworkForXCFramework', 'assembleGcidProtocolDebugXCFramework', 'assembleGcidProtocolReleaseIosFatFrameworkForXCFramework', 'assembleGcidProtocolReleaseIosSimulatorFatFrameworkForXCFramework', 'assembleGcidProtocolReleaseMacosFatFrameworkForXCFramework', 'assembleGcidProtocolReleaseTvosFatFrameworkForXCFramework', 'assembleGcidProtocolReleaseTvosSimulatorFatFrameworkForXCFramework', 'assembleGcidProtocolReleaseWatchosFatFrameworkForXCFramework', 'assembleGcidProtocolReleaseWatchosSimulatorFatFrameworkForXCFramework', 'assembleGcidProtocolReleaseXCFramework', 'assembleGcidProtocolXCFramework'.
./gradlew assembleXCFrameworks is the command which I use to build the XCfFrameworks.

Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin#27e0e84c' is not a valid version number

i added Firebase cloud messaging plugin to my ionic project when i run the project using
ionic cordova run android
i get this error
> Configure project :app
Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin#27e0e84c' is not a valid version number
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script '../platforms/android/cordova-plugin-fcm-with-dependecy-updated/starter-FCMPlugin.gradle' line: 22
* What went wrong:
A problem occurred evaluating script.
> Cannot invoke method lastIndexOf() on null object
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle

Error while running GitHub action android

GitHub action build failed with the below exception
> Task :app:spotlessKotlinCheck FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:spotlessKotlinCheck'.
The following files had format violations:
app/src/androidTest/java/com/example/androiddevchallenge/ExampleInstrumentedTest.kt
While I running this locally
./gradlew :app:spotlessKotlinCheck
It shows build success.
How to fix this?

Execution failed for task ':app:processDebugResources'. react-native

There is an error while run project on windows for android. Everything was good but I installed react-natigation and react-native-gesture-handler#~1.0.14 than I started project with react-native run-android command.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Could not read path 'D:\ProjectFolder\android\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\androidx\lifecycle'.
I solved my problem. If somebody need this, remove react-navigation and install #react-navigation/native

Path to cmake in Android

When building my Android project in AndroidStudio 3.6.1 I'm getting an error message:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mobile:externalNativeBuildCleanDebug'.
> A problem occurred starting process 'command 'C:\Users\myusername\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe''
cmake is correctly installed but myusername does not exists. Instead, it should be a different folder.
Where can I change the path?

Categories

Resources