Execution failed for task ':react-native-zoom-us:compileDebugJavaWithJavac' - android

Please anyone have the solution? then please share . When I used the.
react-native-zoom-us": "^5.0.0
the the Sdk was intialized but on Join meeting it was not working and App crashes So I tried to use the Latest version now its not working.
Currently Using
"react": "18.1.0",
"react-native": "0.70.0",
"react-native-zoom-us": "^6.16.4",
android/build.gradle
minSdkVersion = 23
compileSdkVersion = 32
targetSdkVersion = 31
I followed these steps.
Install npm lib Run npm install react-native-zoom-us
[Android only] Get Meeting SDK with *.aar files
The following manual steps are needed because ZoomUs SDK does not expose *.aar files directly.
Register on ZoomUs (https://zoom.us/signup#/signup)
Go to https://marketplace.zoom.us/develop/create
Click on Create placed on Meeting SDK card, choose App Name and click on Continue
Fill in Company Name, Name and Email address and click on Continue
On Download step choose Android then v5.13.1.11014 and click on download icon
Uzip the content of downloaded zoom-sdk-android-5.13.1.11014.zip
Copy two *.aar files to the node_modules/react-native-zoom-us folder of your project:
cp ~/Downloads/zoom-sdk-android-5.13.1.11014/mobilertc-android-studio/commonlib/commonlib.aar node_modules/react-native-zoom-us/android/commonlib
cp ~/Downloads/zoom-sdk-android-5.13.1.11014/mobilertc-android-studio/mobilertc/mobilertc.aar node_modules/react-native-zoom-us/android/mobilertc
This is the link same Question on Github
Errors
Task :react-native-zoom-us:compileDebugJavaWithJavac FAILED
Task :app:processDebugResources FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
176 actionable tasks: 7 executed, 169 up-to-date
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsActivity.java:4: warning: [deprecation] MeetingActivity in us.zoom.sdk has been deprecated
import us.zoom.sdk.MeetingActivity;
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsModule.java:76: error: RNZoomUsModule is not abstract and does not override abstract method onLocalRecordingPrivilegeRequested(IRequestLocalRecordingPrivilegeHandler) in InMeetingServiceListener
public class RNZoomUsModule extends ReactContextBaseJavaModule implements ZoomSDKInitializeListener, InMeetingServiceListener, MeetingServiceListener, InMeetingShareController.InMeetingShareListener, LifecycleEventListener {
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsModule.java:1122: warning: [deprecation] onShareActiveUser(long) in InMeetingShareListener has been deprecated
public void onShareActiveUser(long userId) {
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsModule.java:209: warning: [deprecation] Integer(int) in Integer has been deprecated
videoViews.add(new Integer(tagId));
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsModule.java:219: warning: [deprecation] Integer(int) in Integer has been deprecated
videoViews.remove(new Integer(tagId));
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsVideoView.java:61: warning: [deprecation] Long(long) in Long has been deprecated
users.remove(new Long(inMeetingService.getMyUserID()));
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsActivity.java:6: warning: [deprecation] MeetingActivity in us.zoom.sdk has been deprecated
public class RNZoomUsActivity extends MeetingActivity {
^
1 error
6 warnings
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
What went wrong:
Execution failed for task ':react-native-zoom-us:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
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.
==============================================================================
2: Task failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:/Users/shafqatbari/.gradle/caches/transforms-3/e9b9775f38bad343aa040e35c99099c7/transformed/jetified-mobilertc/res/layout/activity_media_player.xml:7: AAPT: error: attribute controller_layout_id (aka com.salushealth:controller_layout_id) not found.`[![Pic of Error][1]][1]

I used the newest version 6.16.5. Now its working.
When I reported the issue they responded to that and updated to new version and shared the details with me Thanks to
"react-native-zoom-us" team
This is the answer
GitHub Link

Related

Execution failed for task ':expo:compileReleaseKotlin'

I am building a react native app using eas. Its failing each time i try and i have no idea what could be the issue. `this is the error its showing
Task :expo:compileReleaseKotlin FAILED1470
[stderr] e: /home/expo/workingdir/build/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapperBase.kt: (50, 3): 'getUIImplementationProvider' overrides nothing1471
[stderr] e: /home/expo/workingdir/build/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapperBase.kt: (50, 76): Unresolved reference: UIImplementationProvider1472
[stderr] e: /home/expo/workingdir/build/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapperBase.kt: (51, 12): Not enough information to infer type variable T1473>
Task :expo-modules-core:buildCMakeRelWithDebInfo[x86_64]1474w:
Detected multiple Kotlin daemon sessions at build/kotlin/sessions1475Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.1476You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.1477See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings1478Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.1479Please consult deprecation warnings for more details.1480377 actionable tasks: 377 executed1481
[stderr] FAILURE: Build failed with an exception.1482
[stderr] * What went wrong:1483[stderr] Execution failed for task ':expo:compileReleaseKotlin'.1484[stderr] > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction1485[stderr] > Compilation error. See log for more details1486
[stderr] * Try:1487[stderr] > Run with --stacktrace option to get the stack trace.1488[stderr] > Run with --info or --debug option to get more log output.1489[stderr] > Run with --scan to get full insights.1490[stderr] * Get more help at https://help.gradle.org1491[stderr] BUILD FAILED in 5m 47s1492Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
i have tried un installing and reinstalling expo cli on machine which is using linux(Crostini to be precise) because some of the errors it was highlighting were deprecation errors of some of the installed modules. ive tried building it a number of times, revisiting my code and searching online hoping that i may i be able to pin point where its going wrong
The solution that worked for me is to upgrade your react native package to the patch version as described here: https://github.com/facebook/react-native/issues/35210

FAILURE: Build failed with an exception. - Android

AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{}],"original":"ERROR:: AAPT: D:\android-basics-kotlin-cupcake-app-starter\app\build\intermediates\processed_res\debug\out\resources-debug.ap_: error: The system cannot find the file specified. (2).\nerror: failed to create archive.\n\n ","tool":"AAPT"}
Task :app:mergeDebugNativeLibs
Task :app:mergeExtDexDebug
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:: AAPT: D:\android-basics-kotlin-cupcake-app-starter\app\build\intermediates\processed_res\debug\out\resources-debug.ap_: error: The system cannot find the file specified. (2).
error: failed to create archive.
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.
Get more help at https://help.gradle.org
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.7.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 7s
27 actionable tasks: 26 executed, 1 up-to-date
Can anyone help me to solve this problem...? please...
This is what happens when aapt fails to create an archive.
First make sure you are using the latest IDE and SDK. aapt for packaging is obsolete, and the earlier aapt2 has many bugs.
If they are up to date, try to check if the following processes on your computer have read/write access to the project directory.
[your android sdk path]\build-tools[your sdk version]\aapt.exe
[your android sdk path]\build-tools[your sdk version]\aapt2.exe
[your android studio path]\bin\studio64.exe
[your android studio path]\bin\fsnotifier64.exe
[your android studio path]\jre\bin\java.exe
[your android studio path]\jre\bin\javaw.exe
If you haven't set permissions manually, they are usually blocked by security software.
I recently ran into this problem and spent a lot of time finally found out that the security software on my workstation was not adding aapt2 and aapt to the allowed list for the project repository.

Flutter error when adding "cloud_firestore"

I get this error when i add "cloud_firestore:" to pubspec.yaml :
$ flutter run
Launching lib/main.dart on Infinix X627 in debug mode...
Initializing gradle... 1.6s
Resolving dependencies... 5.4s
Note: /home/muhammad/development/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/muhammad/development/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
D8: Cannot fit requested classes in a single dex file (# methods: 80689 > 65536)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/0.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/1.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/4.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/5.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/6.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/7.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/8.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/9.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/10.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/11.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/12.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/13.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/14.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/15.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/16.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/17.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/18.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/19.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/20.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/21.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/22.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/23.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/24.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/25.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/26.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/27.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/28.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/29.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/30.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/31.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/32.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/33.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/34.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/35.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/36.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/37.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/38.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/39.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/40.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/41.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/42.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/43.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/44.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/45.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/46.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/47.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/48.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/49.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/50.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/51.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/52.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/53.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/54.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/55.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/56.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/57.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/58.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/59.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/60.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/62.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/63.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/64.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/65.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/66.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/67.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/68.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/69.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/72.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/73.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/74.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/75.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/76.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/77.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/78.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/79.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/80.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/81.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/82.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/83.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/84.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/85.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/86.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/87.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/88.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/89.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/90.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/91.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/92.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/93.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/94.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/95.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/96.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/97.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/98.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/99.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/100.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/101.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/102.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/103.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/104.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/105.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/107.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/108.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/109.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/110.jar, /home/muhammad/Documents/lab/flutter/teststore/build/app/intermediates/transforms/dexBuilder/debug/111.jar
The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 36s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 96.8s
Gradle task assembleDebug failed with exit code 1
(I'm new to flutter and android development)
Since cloud_firestore is a decently sized dependency, you need to enable multidex.
View this to configure your app to support multidex.
If you don't want to do that, all you have to do is set your minSdkVersion to 21 or higher in your build.gradle. However, that does make it so that your app doesn't support devices below 5.1.
Depending on how many users you want to support, I'd recommend just upgrading your minSdkVersion since it's the easiest way. It's up to you however.

React-native android studio Build Failed

When I do build->rebuild project the build fails in the android studio. I have the error message posted below. This is very strange because I didn't change anything, all I tried was to create a new AVD and the next thing you know trying to build it causes an error. Now I can't get it to run. I am hesitant to try some random quick fix because everything was working fine until I created a new AVD.
> Task :app:compileDebugJavaWithJavac FAILED
/Users/waltershub/Desktop/Fluz-Develop/fluzfluz-frontend/fluzclient/android/app/src/main/java/com/fluzclient/MainApplication.java:22: error: cannot find symbol
import io.branch.referral.Branch;
^
symbol: class Branch
location: package io.branch.referral
/Users/waltershub/Desktop/Fluz-Develop/fluzfluz-frontend/fluzclient/android/app/src/main/java/com/fluzclient/MainApplication.java:98: error: cannot find symbol
Branch.getAutoInstance(this);
^
symbol: variable Branch
location: class MainApplication
Note: /Users/waltershub/Desktop/Fluz-Develop/fluzfluz-frontend/fluzclient/android/app/src/main/java/com/fluzclient/MainActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0-milestone-1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 19s
409 actionable tasks: 381 executed, 28 up-to-date
Branch SDK is not properly imported in your React project.
https://docs.branch.io/pages/apps/react-native/
Follow YARN installation to add dependencies in the project.

Cordova:Unable to build project with corodva-plugin-calendar

I'm developing the cordova application, in which I want to have some kind of booking functionality through calendar. So for that, I installed very famous EddyVerbruggen/Calendar-PhoneGap-Plugin plugin.
But while building the project, it's throwing following error
/home/admin/Desktop/myApp/platforms/android/src/nl/xservices/plugins/Calendar.java:148: error: cannot find symbol
if (PackageManager.PERMISSION_GRANTED != ContextCompat.checkSelfPermission(this.cordova.getActivity(), type)) {
^
symbol: method checkSelfPermission(Activity,String)
location: class ContextCompat
/home/admin/Desktop/myApp/platforms/android/src/nl/xservices/plugins/Calendar.java:157: error: cannot find symbol
ActivityCompat.requestPermissions(
^
symbol: method requestPermissions(Activity,String[],int)
location: class ActivityCompat
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 43.228 secs
Error: Error code 1 for command: /home/admin/Desktop/myApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/admin/Desktop/myApp/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
I also gone through following threads..but still no help
Android M (6) compatibility
Issue related to the new Cordova version CLI >5
My Environment
Cordova-CLI : 6.1.1
Android-Sdk : 23
So, what should I do to resolve this issue?
I had the same problem after updating my plugins. To save time, I just used an older version of the plugin.
ionic plugin add cordova-plugin-calendar#4.4.4

Categories

Resources