Skip to content

Commit

Permalink
issue #10: make note of the necessary system properties until I figur…
Browse files Browse the repository at this point in the history
…e out a better way to fix this.
  • Loading branch information
centic9 committed Jun 18, 2017
1 parent fa40515 commit bb2b74c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ Configure the version of the Android Build Tools that you have installed.

vi poitest/build.gradle

In order to work around problems with finding a suitable XML Parser, currently
the following system properties need to be set manually during startup of your
application (let me know if you know of a better way to do this, see issue #10)

System.setProperty("org.apache.poi.javax.xml.stream.XMLInputFactory", "com.fasterxml.aalto.stax.InputFactoryImpl");
System.setProperty("org.apache.poi.javax.xml.stream.XMLOutputFactory", "com.fasterxml.aalto.stax.OutputFactoryImpl");
System.setProperty("org.apache.poi.javax.xml.stream.XMLEventFactory", "com.fasterxml.aalto.stax.EventFactoryImpl");

Finally run the build and some testing. Make sure you have a device connected, e.g. the Android emulator.

./gradlew build connectedCheck
Expand Down

0 comments on commit bb2b74c

Please sign in to comment.