Comments (1)
I tested the current SDK (master branch) on emulators and I can confirms it works well down to API level 21. This includes the serialization/deserialization of FHIR resources as well as the serialization/deserialization of CQL libraries which was a key sticking point during our integration with cql engine.
However, when trying on API level 19 there's this error:
05-15 12:09:05.044 3357-3357/com.google.fhirengine.example E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.google.fhirengine.example, PID: 3357
java.lang.VerifyError: org/apache/log4j/config/PropertySetter
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:805)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.(LogManager.java:127)
at org.slf4j.impl.Log4jLoggerFactory.(Log4jLoggerFactory.java:66)
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:72)
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:45)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
at ca.uhn.fhir.context.FhirContext.(FhirContext.java:80)
at com.google.fhirengine.resource.ResourceModule.getFhirContext(ResourceModule.java:29)
at com.google.fhirengine.resource.ResourceModule_GetFhirContextFactory.proxyGetFhirContext(ResourceModule_GetFhirContextFactory.java:27)
at com.google.fhirengine.DaggerFhirEngineComponent.getIParser(DaggerFhirEngineComponent.java:34)
at com.google.fhirengine.DaggerFhirEngineComponent.getDatabaseImpl(DaggerFhirEngineComponent.java:38)
at com.google.fhirengine.DaggerFhirEngineComponent.getFhirEngineImpl(DaggerFhirEngineComponent.java:62)
at com.google.fhirengine.DaggerFhirEngineComponent.getFhirEngine(DaggerFhirEngineComponent.java:75)
at com.google.fhirengine.example.MainActivity.onCreate(MainActivity.java:95)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
which is an issue due to missing java libraries on Android which are used by HAPI FHIR.
This will likely require changes to HAPI FHIR - or some kind of black magic to provide those libraries somehow. I will create another issue for that, and to close this issue, I will merely add a disclaimer to the README file to state the min api level.
from android-fhir.
Related Issues (20)
- Declare dependencies differently, so that Dependabot "sees" them (and "group" dependencies which Dependabot already sees) HOT 4
- Run Flank in GitHub Action HOT 6
- AndroidxTest JAR duplicates on testImplementation scope of `common` module
- Build Failure: CodeQL detected code written in Java/Kotlin but could not process any of it. HOT 4
- Too many Email Notifications since Committers (Maintainers) seem to automagically get added as reviewers now? HOT 2
- Exception with the Flow while using Obfuscation and Shrink Resource in release build HOT 4
- Search query takes more time while loading service data HOT 10
- Error with Json Patch HOT 3
- Migrate to Kotlin Multiplatform HOT 3
- Getting Page not found for example of applying custom component implementation in Github Page. HOT 1
- Test $apply using Measles Immunization mini-IG HOT 1
- Questionnaire content style customization HOT 3
- Bug Report: Calculated Expression Fails to Update Beyond Initial Changes in Questionnaire HOT 1
- SyncUploadProgress Only Emits on Batch Success, Delaying Database Consolidation HOT 1
- help info box disappears after changing answer HOT 2
- Ability to Dump Application's Database HOT 5
- Concurrent Sync Worker execution can lead to data inconsistencies
- Uploader should not be responsible for creating patches
- Inaccurate tracking of SyncJobStatus due to "completion-event" preceding room db update
- PerResourceLocalChangeFetcher gives back incorrect total changes to be uploaded
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 android-fhir.