wordpress-mobile / wordpress-mobile/WordPress-Android
Build errors after Installing the Relay Gradle plugin
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Expected behavior
Relay Gradle Plugin can be installed to the project and the project can be built with no errors afterwards.
Actual behavior
After installing the Relay Gradle Plugin, building the project fails with 100+ errors, all of them related to BuildConfig and usages of values from it in the app's source code.
Steps to reproduce the behavior
- Open the project in Android Studio
- Follow the official guide to Install the Relay Gradle plugin
- Tap
Sync Nowin Android Studio's notification bar that appears above the file editor - Build/Make the project
- 💣 Verify the build fails with over 100 errors, all saying:
Unresolved reference: BuildConfig
Example
Checkout the branch tech/relay-plugin to quickly see the issues.
Note
The tip of the branch is nottrunk, but a rebase oftrunk+deps/main-batch-androidx-compose-kotlin.
Due to this approach we should be able to check quickly if the pending Compose and related dependencies update doesn't improve something about this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Check out the tech/relay-plugin branch, then follow the documented Relay Gradle plugin installation steps and run a Gradle sync and project build. Investigate the resulting BuildConfig unresolved-reference errors; the work is done when the plugin is installed and the project builds without those errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100