jitsi-meet: Cannot access PermissionAwareActivity on custom build

Hello! It seems like I’m facing the same issue as described here: https://github.com/jitsi/jitsi-meet/issues/12888. The ./android/scripts/release-sdk.sh /tmp/repo was successful. The generated repo has the next structure (filtered to show only .aars):

├── com
│   └── facebook
│       └── react
│           ├── react-native
│           │   └── 0.69.10
│           │       └── react-native-0.69.10.aar
│           ├── react-native-amplitude
│           │   └── 2.7.0-jitsi-13927826
│           │       └── react-native-amplitude-2.7.0-jitsi-13927826.aar
│           ├── react-native-async-storage
│           │   └── 1.17.3-jitsi-13927826
│           │       └── react-native-async-storage-1.17.3-jitsi-13927826.aar
│           ├── react-native-background-timer
│           │   └── 2.4.1-jitsi-13927826
│           │       └── react-native-background-timer-2.4.1-jitsi-13927826.aar
│           ├── react-native-calendar-events
│           │   └── 2.2.0-jitsi-13927826
│           │       └── react-native-calendar-events-2.2.0-jitsi-13927826.aar
│           ├── react-native-community_clipboard
│           │   └── 1.5.1-jitsi-13927826
│           │       └── react-native-community_clipboard-1.5.1-jitsi-13927826.aar
│           ├── react-native-community_netinfo
│           │   └── 7.1.7-jitsi-13927826
│           │       └── react-native-community_netinfo-7.1.7-jitsi-13927826.aar
│           ├── react-native-default-preference
│           │   └── 1.4.4-jitsi-13927826
│           │       └── react-native-default-preference-1.4.4-jitsi-13927826.aar
│           ├── react-native-device-info
│           │   └── 8.4.8-jitsi-13927826
│           │       └── react-native-device-info-8.4.8-jitsi-13927826.aar
│           ├── react-native-gesture-handler
│           │   └── 2.9.0-jitsi-13927826
│           │       └── react-native-gesture-handler-2.9.0-jitsi-13927826.aar
│           ├── react-native-get-random-values
│           │   └── 1.7.2-jitsi-13927826
│           │       └── react-native-get-random-values-1.7.2-jitsi-13927826.aar
│           ├── react-native-giphy
│           │   └── 2.3.0-jitsi-13927826
│           │       └── react-native-giphy-2.3.0-jitsi-13927826.aar
│           ├── react-native-google-signin
│           │   └── 9.0.2-jitsi-13927826
│           │       └── react-native-google-signin-9.0.2-jitsi-13927826.aar
│           ├── react-native-immersive
│           │   └── 2.0.0-jitsi-13927826
│           │       └── react-native-immersive-2.0.0-jitsi-13927826.aar
│           ├── react-native-keep-awake
│           │   └── 4.0.0-jitsi-13927826
│           │       └── react-native-keep-awake-4.0.0-jitsi-13927826.aar
│           ├── react-native-orientation-locker
│           │   └── 1.5.0-jitsi-13927826
│           │       └── react-native-orientation-locker-1.5.0-jitsi-13927826.aar
│           ├── react-native-pager-view
│           │   └── 5.4.9-jitsi-13927826
│           │       └── react-native-pager-view-5.4.9-jitsi-13927826.aar
│           ├── react-native-performance
│           │   └── 2.1.0-jitsi-13927826
│           │       └── react-native-performance-2.1.0-jitsi-13927826.aar
│           ├── react-native-safe-area-context
│           │   └── 4.4.1-jitsi-13927826
│           │       └── react-native-safe-area-context-4.4.1-jitsi-13927826.aar
│           ├── react-native-screens
│           │   └── 3.13.1-jitsi-13927826
│           │       └── react-native-screens-3.13.1-jitsi-13927826.aar
│           ├── react-native-slider
│           │   └── 4.1.12-jitsi-13927826
│           │       └── react-native-slider-4.1.12-jitsi-13927826.aar
│           ├── react-native-sound
│           │   └── 0.11.1-jitsi-13927826
│           │       └── react-native-sound-0.11.1-jitsi-13927826.aar
│           ├── react-native-splash-screen
│           │   └── 3.3.0-jitsi-13927826
│           │       └── react-native-splash-screen-3.3.0-jitsi-13927826.aar
│           ├── react-native-svg
│           │   └── 12.4.3-jitsi-13927826
│           │       └── react-native-svg-12.4.3-jitsi-13927826.aar
│           ├── react-native-video
│           │   └── 6.0.0-alpha.1-jitsi-13927826
│           │       └── react-native-video-6.0.0-alpha.1-jitsi-13927826.aar
│           ├── react-native-webrtc
│           │   └── 111.0.1-jitsi-13927826
│           │       └── react-native-webrtc-111.0.1-jitsi-13927826.aar
│           └── react-native-webview
│               └── 11.15.1-jitsi-13927826
│                   └── react-native-webview-11.15.1-jitsi-13927826.aar
└── org
    ├── jitsi
    │   └── react
    │       └── jitsi-meet-sdk
    │           └── 99.0.0
    │               └── jitsi-meet-sdk-99.0.0.aar
    └── webkit
        └── android-jsc
            └── r250230
                └── android-jsc-r250230.aar

The error says:

error: cannot access PermissionAwareActivity
public final class MainActivity extends androidx.appcompat.app.AppCompatActivity implements org.jitsi.meet.sdk.JitsiMeetActivityInterface
class file for com.facebook.react.modules.core.PermissionAwareActivity not found

At the same time, I can’t see core react-native dependency in the Gradle dependency tree. If I add it manually to libs, the compile-time error disappears, but runtime crashes with: Didn't find class "com.facebook.jni.HybridData$Destructor" on path: DexPathList.

Custom build dependency is declared as: implementation ("org.jitsi.react:jitsi-meet-sdk:99.0.0") { transitive = true }

Any ideas about what could be the problem? Thank you for a great project.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 20 (6 by maintainers)

Most upvoted comments

Without a sample project to reproduce this nobody can help you.

Do you have a sample project where this can be reproduced with the latest SDK?