Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android implementation runtime error #413

Open
sushant-startupwind opened this issue Nov 30, 2022 · 6 comments
Open

Android implementation runtime error #413

sushant-startupwind opened this issue Nov 30, 2022 · 6 comments

Comments

@sushant-startupwind
Copy link

sushant-startupwind commented Nov 30, 2022

I have followed implementation guideline correctly and tried to run project on android studio, It shows dependancies linking error,refer attachment for details...

React Native : 0.68.1
react-native-jitsi-meet sdk : 5.1.0

=> build.gradle =>app level

project.ext.react = [
entryFile: "index.js",
bundleAssetName: "app.bundle",
enableHermes: false, // clean and rebuild if changing

]

dependencies {
...
implementation(project(':react-native-jitsi-meet')) {
exclude group: 'com.facebook.react',module:'react-native-locale-detector'
exclude group: 'com.facebook.react',module:'react-native-vector-icons'
// Un-comment below if using hermes
exclude group: 'com.facebook',module:'hermes'
// Un-comment any packages below that you have added to your project to prevent duplicate_classes errors
exclude group: 'com.facebook.react',module:'react-native-amplitude'
exclude group: 'com.facebook.react',module:'react-native-device-info'
exclude group: 'com.facebook.react',module:'react-native-google-signin'
exclude group: 'com.facebook.react',module:'react-native-async-storage'
exclude group: 'com.facebook.react',module:'react-native-background-timer'
exclude group: 'com.facebook.react',module:'react-native-calendar-events'
exclude group: 'com.facebook.react',module:'react-native-community_clipboard'
exclude group: 'com.facebook.react',module:'react-native-default-preference'
exclude group: 'com.facebook.react',module:'react-native-gesture-handler'
exclude group: 'com.facebook.react',module:'react-native-get-random-values'
exclude group: 'com.facebook.react',module:'react-native-giphy'
exclude group: 'com.facebook.react',module:'react:react-native-immersive'
exclude group: 'com.facebook.react',module:'react-native-keep-awake'
exclude group: 'com.facebook.react',module:'react-native-masked-view_masked-view'
exclude group: 'com.facebook.react',module:'react-native-pager-view'
exclude group: 'com.facebook.react',module:'react-native-performance'
exclude group: 'com.facebook.react',module:'react-native-reanimated'
exclude group: 'com.facebook.react',module:'react-native-safe-area-context'
exclude group: 'com.facebook.react',module:'react-native-screens'
exclude group: 'com.facebook.react',module:'react-native-slider'
exclude group: 'com.facebook.react',module:'react-native-splash-screen'
exclude group: 'com.facebook.react',module:'react:react-native-video'
exclude group: 'com.facebook.react',module:'react-native-webrtc'
exclude group: 'com.facebook.react',module:'react-native-community_netinfo'
exclude group: 'com.facebook.react',module:'react-native-immersive'
exclude group: 'com.facebook.react',module:'react-native-sound'
exclude group: 'com.facebook.react',module:'react-native-svg'
exclude group: 'com.facebook.react',module:'react-native-video'
exclude group: 'com.facebook.react',module:'react-native-webview'

}

...
}

=> build.gradle =>project level

allprojects {
repositories {
...
maven { // <---- Add this block
url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
}
...
}
}

=>MainApplication.java
added
import androidx.annotation.Nullable;

@OverRide
protected String getJSMainModuleName() {
return "index";
}
@OverRide
protected @nullable String getBundleAssetName() {
return "app.bundle";
}

=>metro.config.js

const blacklist = require('metro-config/src/defaults/exclusionList');
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
resolver: {
blacklistRE: blacklist([
/ios/Pods/JitsiMeetSDK/Frameworks/JitsiMeet.framework/assets/node_modules/react-native/.*/,
]),
},
};

please refer attachment for error message
Screenshot 2022-11-30 at 12 13 34 PM

@maheshmbm
Copy link

the required libraries shown in screenshot should not be excluded in gradle dependencies. It shows you excluded those.

@sushant-startupwind
Copy link
Author

@maheshmbm if i remove error causing dependencies from excluded groups then it shows another error, screenshot attached for your ref.
Screenshot 2022-11-30 at 3 33 08 PM

@weconnectchat
Copy link

@maheshmbm @sushant-startupwind are you able to make android build recently? We can't.. with iOS we can make build but for android getting issues and build failed.

@sushant-startupwind
Copy link
Author

@weconnectchat we used iFrame for android, and managing ios with sdk

@weconnectchat
Copy link

weconnectchat commented Jan 31, 2023

ok so you used iFrame as a workaround as build was not possible in android? or you didn't tried android with SDK and choose iFrame from start. @sushant-startupwind

@sushant-startupwind
Copy link
Author

@weconnectchat Tried all possible ways, android with sdk has dependency issue as discussed above , and ios has issue with iFrame so used alternative solution (iFrame for android and sdk for ios)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants