J’essaie de construire DiscourseHub sur macOS pour déboguer Forum entries jump on Android app after opening the app - #5 by trs80 et, après quelques efforts, j’ai réussi à configurer l’environnement de build (les instructions omettent notamment l’installation de Java et d’Android Studio Set Up Your Environment · React Native ), mais l’exécution de npx react-native run-android aboutit à :
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/james/Software/discoursemobile/android/app/build.gradle' line: 88
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not get unknown property 'MYAPP_VERSION' for DefaultConfig$AgpDecorated_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=26, mCodename='null'}, targetSdkVersion=DefaultApiVersion{mApiLevel=35, mCodename='null'}, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptSupportModeBlasEnabled=null, renderscriptNdkModeEnabled=null, versionCode=243, versionName=null, applicationId=com.discourse, testApplicationId=null, testInstrumentationRunner=null, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=[], buildConfigFields={}, resValues={}, proguardFiles=[], consumerProguardFiles=[], manifestPlaceholders={}, wearAppUnbundled=null} of type com.android.build.gradle.internal.dsl.DefaultConfig$AgpDecorated.
Ce qui semble être une correction simple, mais je ne sais pas où l’appliquer et, en plus, cela devrait fonctionner directement puisqu’il s’agit d’un checkout frais. Une idée de ce qui se passe ?