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

Can't build android app base on version 1.55.1 released #6908

Closed
rain9x opened this issue Dec 25, 2022 · 2 comments
Closed

Can't build android app base on version 1.55.1 released #6908

rain9x opened this issue Dec 25, 2022 · 2 comments

Comments

@rain9x
Copy link

rain9x commented Dec 25, 2022

Summary

Hi everyone, I'm downloading source code from Mobile Version 1.55.1 released, but I'm can't build android app. Can anyone help me? Thank for all

Environment Information

  • Device Name: Macbook pro M1
  • OS Version: Macos Monterey
  • Mattermost App Version: 1.55.1

Steps to reproduce

Step 1: Dowload source code from Mobile Version 1.55.1 released
Step 2: run: npm install
Step 3: run: react-native run-android

Expected behavior

Can run android app on simulator

Observed behavior (that appears unintentional)

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > The minCompileSdk (31) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-30).
     Dependency: androidx.appcompat:appcompat:1.4.1.
     AAR metadata file: /Users/hungnguyen/.gradle/caches/transforms-3/f6cf9637d2f604e9f80955c01bd68647/transformed/appcompat-1.4.1/META-INF/com/android/build/gradle/aar-metadata.properties.

If manual fix with remove minCompileSdk = 31 from aar-metadata.properties after that re-run react-native run-android command and another file will encounter the same problem.

@larkox
Copy link
Contributor

larkox commented Jan 11, 2023

@rain9x Is there any reason why you cannot compile with the SDK31?

@amyblais
Copy link
Member

Closing some older issues. Please re-open this if the issue still reproduces on the latest version (v2.10),

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