Not able to build android debug app

Hi Team,

I have modified some small custom code in Android after that generated SDK by,
./android/scripts/release-sdk.sh /home/ajays/sdk_repo
SDK generation was successful.

I am using that SDK as

buildscript {
ext.kotlin_version = ‘1.4.0’
ext {
kotlinVersion = ‘1.4.0’
buildToolsVersion = “29.0.2”
minSdkVersion = 23
compileSdkVersion = 29
targetSdkVersion = 29
libreBuild = ‘false’
mavenRepo = "file:///home/ajays/sdk_repo"

}
}

allprojects {
repositories {
maven { url rootProject.ext.mavenRepo }
}
}

on doing npm run android i am getting this following error
can any one help me on this

  • What went wrong:
    Execution failed for task ‘:app:checkDebugAarMetadata’.

Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
Could not find com.swmansion.reanimated:react-native-reanimated:1.13.3-jitsi-9148581.
Searched in the following locations:
- file:/home/ajays/sdk_repo/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- https://dl.google.com/dl/android/maven2/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- https://jcenter.bintray.com/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- file:/home/ajays/code/mobile/node_modules/react-native/android/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- file:/home/ajays/.m2/repository/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- file:/home/ajays/code/mobile/node_modules/jsc-android/dist/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- https://www.jitpack.io/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
Required by:
project :app
Could not find com.swmansion.reanimated:react-native-reanimated:1.13.3-jitsi-9148581.
Searched in the following locations:
- file:/home/ajays/sdk_repo/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- https://dl.google.com/dl/android/maven2/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- https://jcenter.bintray.com/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- file:/home/ajays/code/mobile/node_modules/react-native/android/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- file:/home/ajays/.m2/repository/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- file:/home/ajays/code/mobile/node_modules/jsc-android/dist/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
- https://www.jitpack.io/com/swmansion/reanimated/react-native-reanimated/1.13.3-jitsi-9148581/react-native-reanimated-1.13.3-jitsi-9148581.pom
Required by:
project :app > org.jitsi.react:jitsi-meet-sdk:4.0.0

  • 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

We are looking into this.

1 Like

@saghul Thank you. please can you inform me once this is fixed!.

Master should be fixed now, can you please update and give it a try?

1 Like

@saghul I am not getting above error but some other error related to asyncstorage.

Task :app:minifyReleaseWithR8 FAILED
/home/ajays/.gradle/caches/transforms-2/files-2.1/381641d16d451d7698e7c5bcc6caaa72/jetified-react-native-async-storage-1.15.5-jitsi-9155927-runtime.jar: R8: Type com.reactnativecommunity.asyncstorage.AsyncStoragePackage is defined multiple times: /home/ajays/.gradle/caches/transforms-2/files-2.1/381641d16d451d7698e7c5bcc6caaa72/jetified-react-native-async-storage-1.15.5-jitsi-9155927-runtime.jar:com/reactnativecommunity/asyncstorage/AsyncStoragePackage.class, /home/ajays/code/mobile/node_modules/@react-native-async-storage/async-storage/android/build/intermediates/runtime_library_classes_jar/release/classes.jar:com/reactnativecommunity/asyncstorage/AsyncStoragePackage.class

I have tried with ./gradlew clean, Invalidated cache and restart, and also deleted .gradle file

Did you make any changes to our repo?

I have made a small change to the participant list but not related to async-storage.
and also tried with the latest changes of jitsi without any modification still facing the same issue.

Task :app:minifyReleaseWithR8 FAILED
/home/ajays/.gradle/caches/transforms-2/files-2.1/1908e998bd9a5e1d19271bb8aa2de301/jetified-react-native-async-storage-1.15.5-jitsi-9163301-runtime.jar: R8: Type com.reactnativecommunity.asyncstorage.AsyncStoragePackage is defined multiple times: /home/ajays/.gradle/caches/transforms-2/files-2.1/1908e998bd9a5e1d19271bb8aa2de301/jetified-react-native-async-storage-1.15.5-jitsi-9163301-runtime.jar:com/reactnativecommunity/asyncstorage/AsyncStoragePackage.class, /home/ajays/code/mobile/node_modules/@react-native-async-storage/async-storage/android/build/intermediates/runtime_library_classes_jar/release/classes.jar:com/reactnativecommunity/asyncstorage/AsyncStoragePackage.class

I just tried on a fresh master checkout, no problems:

``` $ ./android/scripts/release-sdk.sh /Users/saghul/work/jitsi/tmp_repo/ Releasing Jitsi Meet SDK 4.0.0 Using file:/Users/saghul/work/jitsi/tmp_repo as the Maven repo Pushing React Native 0.61.5-jitsi.2 to the Maven repo ~/work/jitsi/jitsi-meet/node_modules/react-native/android/com/facebook/react/react-native/0.61.5-jitsi.2 ~/work/jitsi/jitsi-meet [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ standalone-pom --- Uploading to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/com/facebook/react/react-native/0.61.5-jitsi.2/react-native-0.61.5-jitsi.2.aar Uploaded to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/com/facebook/react/react-native/0.61.5-jitsi.2/react-native-0.61.5-jitsi.2.aar (8.3 MB at 53 MB/s) Uploading to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/com/facebook/react/react-native/0.61.5-jitsi.2/react-native-0.61.5-jitsi.2.pom Uploaded to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/com/facebook/react/react-native/0.61.5-jitsi.2/react-native-0.61.5-jitsi.2.pom (3.0 kB at 1.0 MB/s) Downloading from remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/com/facebook/react/react-native/maven-metadata.xml Uploading to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/com/facebook/react/react-native/maven-metadata.xml Uploaded to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/com/facebook/react/react-native/maven-metadata.xml (328 B at 109 kB/s) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.495 s [INFO] Finished at: 2021-11-26T16:29:09+01:00 [INFO] ------------------------------------------------------------------------ ~/work/jitsi/jitsi-meet Pushing JSC r245459 to the Maven repo ~/work/jitsi/jitsi-meet/node_modules/jsc-android/dist/org/webkit/android-jsc/r245459 ~/work/jitsi/jitsi-meet [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ standalone-pom --- Uploading to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/org/webkit/android-jsc/r245459/android-jsc-r245459.aar Uploaded to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/org/webkit/android-jsc/r245459/android-jsc-r245459.aar (13 MB at 74 MB/s) Uploading to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/org/webkit/android-jsc/r245459/android-jsc-r245459.pom Uploaded to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/org/webkit/android-jsc/r245459/android-jsc-r245459.pom (452 B at 452 kB/s) Downloading from remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/org/webkit/android-jsc/maven-metadata.xml Uploading to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/org/webkit/android-jsc/maven-metadata.xml Uploaded to remote-repository: file:/Users/saghul/work/jitsi/tmp_repo/org/webkit/android-jsc/maven-metadata.xml (305 B at 152 kB/s) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.445 s [INFO] Finished at: 2021-11-26T16:29:11+01:00 [INFO] ------------------------------------------------------------------------ ~/work/jitsi/jitsi-meet Building and publishing the Jitsi Meet SDK ~/work/jitsi/jitsi-meet/android ~/work/jitsi/jitsi-meet Starting a Gradle Daemon (subsequent builds will be faster)

Configure project :app
WARNING: The option setting ‘android.enableDexingArtifactTransform.desugaring=false’ is experimental.
The current default is ‘true’.

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 Command-Line Interface

BUILD SUCCESSFUL in 13s
26 actionable tasks: 25 executed, 1 up-to-date

Configure project :app
WARNING: The option setting ‘android.enableDexingArtifactTransform.desugaring=false’ is experimental.
The current default is ‘true’.

Task :sdk:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
info Writing bundle output to:, /Users/saghul/work/jitsi/jitsi-meet/android/sdk/build/generated/assets/react/release/index.android.bundle
info Done writing bundle output
info Copying 104 asset files
info Done copying assets

Task :sdk:processReleaseManifest
/Users/saghul/work/jitsi/jitsi-meet/android/sdk/src/main/AndroidManifest.xml:54:9-59:20 Warning:
provider#com.reactnativecommunity.webview.RNCWebViewFileProvider@android:authorities was tagged at AndroidManifest.xml:54 to replace other declarations but no other declaration present

Task :react-native-async-storage:compileReleaseJavaWithJavac
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :react-native-background-timer:compileReleaseJavaWithJavac
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/react-native-background-timer/android/src/main/java/com/ocetnik/timer/BackgroundTimerModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :react-native-community_netinfo:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :react-native-device-info:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :react-native-gesture-handler:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :react-native-google-signin:compileReleaseJavaWithJavac
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/@react-native-community/google-signin/android/src/main/java/co/apptailor/googlesignin/RNGoogleSigninModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/@react-native-community/google-signin/android/src/main/java/co/apptailor/googlesignin/RNGoogleSigninModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :react-native-immersive:compileReleaseJavaWithJavac
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/react-native-immersive/android/src/main/java/com/rnimmersive/RNImmersiveModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :react-native-reanimated:compileReleaseJavaWithJavac
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :react-native-safe-area-context:compileReleaseJavaWithJavac
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :react-native-screens:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :react-native-slider:compileReleaseJavaWithJavac
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/@react-native-community/slider/android/src/main/java/com/reactnativecommunity/slider/ReactSliderManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/@react-native-community/slider/android/src/main/java/com/reactnativecommunity/slider/ReactSliderManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :react-native-sound:compileReleaseJavaWithJavac
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/react-native-sound/android/src/main/java/com/zmxv/RNSound/RNSoundModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :react-native-video:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/react-native-video/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :react-native-webrtc:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :react-native-webview:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/saghul/work/jitsi/jitsi-meet/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :sdk:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :app:stripReleaseDebugSymbols
Unable to strip the following libraries, packaging them as they are: libc++_shared.so, libduktape.so, libfb.so, libfolly_futures.so, libfolly_json.so, libglog.so, libglog_init.so, libimagepipeline.so, libjingle_peerconnection_so.so, libjsc.so, libjscexecutor.so, libjsijniprofiler.so, libjsinspector.so, libnative-filters.so, libnative-imagetranscoder.so, libreactnativeblob.so, libreactnativejni.so, libyoga.so.

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 Command-Line Interface

BUILD SUCCESSFUL in 4m 16s
730 actionable tasks: 672 executed, 58 up-to-date

Configure project :app
WARNING: The option setting ‘android.enableDexingArtifactTransform.desugaring=false’ is experimental.
The current default is ‘true’.

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 Command-Line Interface

BUILD SUCCESSFUL in 3s
74 actionable tasks: 74 executed
~/work/jitsi/jitsi-meet
Finished! Don’t forget to push the tag and the Maven repo artifacts.

</details>