Comments (4)
Hi @Ian2012
I think you are on a master branch.
I tried that too for a reason it uses AGP 7.0.2 and hilt dependencies.
And I faced same issue while trying to build prod release.
I assume what's happening here is we are taking a big leap in this app and this might have caused due to upgrade in kotlin so what i did is i added null safe asserted on all of this declaration. How do you do that? Go to the precise location mentioned in log and add !! as below
_errorMessage.value = null!! Or _courseDates.postValue(result.data!!) instead _errorMessage.value = null or _courseDates.postValue(result.data).
I am assuming this is safe for now because if you look at the code it checks if(x) = !null
However the biggest challenge i find with this master branch is it takes to long to build the project. Shouldn't we be considering to improve these challanges? Like for eg. The build transforms classes with newrelic as well as firebase performance plugin.
Anyways I hope it helps or may be the another way to do it is use version 3.1.0 and make few changes that you need to as the versions are tested and trusted and that's what is being used by the edx.org's official application.
from edx-app-android.
@mini-school Thanks for your comments. I tried to change the version but unfortunately the same error appear and the version was the same.
For me it works if I use the menu Build > Build variants > Bundle (something like that). It works for every variant (prodDebugable, prodRelease, ...)
I also added a null checking on every part the error appear, but then the command show the message "Build successfully" but no file was generated.
I really think I was doing something wrong.
And yes, I was using the master branch. Btw, can we work on improve the documentation to build the Android app?
I'm working on a general guide so anyone can follow it. The objective is to avoid common or simple errors to new people. Any comments or guide you already have would be helpful.
Thanks in advance
from edx-app-android.
Where are you changing version?
I would say download a tag/release 3.1.0 from the repository. Use this link https://github.com/openedx/edx-app-android/releases/tag/release%2F3.1.0
Make the changes needed and you will be able to build without a problem😊
from edx-app-android.
The issue is resolved as part of the Release 3.1.4 (latest). ✨
from edx-app-android.
Related Issues (20)
- Connection error in Courses tab HOT 8
- Not able to load authenticated block HOT 1
- SSLHandshakeException, CertPathValidatorException, Trust anchor for certification path not found. HOT 6
- Crashlytics initialize Issue HOT 3
- Caused by: org.gradle.api.resources.MissingResourceException: Could not read script 'C:\DineshSingh\studybytech\edx-app-android\ExoPlayer\core_settings.gradle' as it does not exist. HOT 2
- app doesn´t connect with a backend with http, only https backends servers allowed HOT 2
- BUG when you rotate the device twice while watching a youtube video HOT 2
- Error inflating class com.google.android.exoplayer2.ui.PlayerView HOT 2
- Caching in AuthenticatedWebView HOT 1
- Could not find method leftShift() HOT 4
- java.lang.IllegalStateException: Not a JSON Object HOT 6
- Microsoft Login azuread-oauth2 header
- Randomised content block - Remove "View on Web" Message HOT 2
- HMS support for HUAWEI's phones HOT 1
- HarmonyOS support! HOT 1
- Why EDX videos are disappearing? HOT 6
- Connection error in Courses tab ( in Text content and Html xblock in my android app)
- Unable to register or sign up new user HOT 1
- [DEPR]: Shifting edX-app-android to openedx-unsupported + Updated documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edx-app-android.