Git Product home page Git Product logo

Comments (4)

mini-school avatar mini-school commented on June 21, 2024

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.

Ian2012 avatar Ian2012 commented on June 21, 2024

@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.

mini-school avatar mini-school commented on June 21, 2024

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.

HamzaIsrar12 avatar HamzaIsrar12 commented on June 21, 2024

The issue is resolved as part of the Release 3.1.4 (latest). ✨

from edx-app-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.