radar-prmt-android icon indicating copy to clipboard operation
radar-prmt-android copied to clipboard

Problems with dependencies when building the app

Open hwesley opened this issue 4 years ago • 2 comments

Hi,

I work for imec and I will probably write the plugin for the ChillPlus device. I'm trying to get the app up & running, but there are a lot of build problems:

  • Conflicts of androidX & the old support libraries. I've tried updating to androidX, but noticed that the login library, using zxing (which uses support lib) is the problem.

  • Empatica library is not resolved

  • Fabric plugin is outdated & needs to be updated to 1.28.0

Kind regards, Wesley

hwesley avatar Apr 22 '20 08:04 hwesley

Hi, thanks for trying this out. To address your issues one by one:

  • So far we've gotten by using the following gradle.properties arguments:
    org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
    android.useAndroidX=true
    android.enableJetifier=true
    
    I'll update those in the repository as well.
  • Empatica library is proprietary and it can be downloaded by becoming an Empatica Developer, see the Empatica plugin README for more information. The plugin can be commented out in the build.gradle and removed from app/src/main/java/org/radarbase/detail/RadarServiceImpl.kt plugin list to avoid this dependency.
  • I'll update the Fabric plugin version.

blootsvoets avatar Apr 22 '20 08:04 blootsvoets

Thank you for your quick input! Apparently using useAndroidX only wasn't enough & enableJetifier did the trick!

Having these in the repository would help indeed!

hwesley avatar Apr 22 '20 09:04 hwesley