0

I enabled Minify in my release for SDK 15 as a target and now some installs get a failure:

Exception q1.b:
 at javax.xml.parsers.FactoryFinder.newInstance (FactoryFinder.java:200)
 at javax.xml.parsers.FactoryFinder.newInstance (FactoryFinder.java:152)
 at javax.xml.parsers.FactoryFinder.find (FactoryFinder.java:277)
 at javax.xml.parsers.SAXParserFactory.newInstance (SAXParserFactory.java:127)
 at com.hubbardsoftware.racetac.NOAAChartCatalog.update (NOAAChartCatalog.java:168)
 at com.hubbardsoftware.racetac.NOAAChartCatalog.load (NOAAChartCatalog.java:104)
 at com.hubbardsoftware.racetac.ChartLoaderThread.checkForNOAAChartUpdates(ChartLoaderThread.java:166)
 at com.hubbardsoftware.racetac.ChartLoaderThread.run (ChartLoaderThread.java:140)
Caused by java.lang.ClassNotFoundException:
 at java.lang.Class.classForName
 at java.lang.Class.forName (Class.java:607)
 at javax.xml.parsers.FactoryFinder.getProviderClass (FactoryFinder.java:124)
 at javax.xml.parsers.FactoryFinder.newInstance (FactoryFinder.java:188)
 at javax.xml.parsers.FactoryFinder.newInstance (FactoryFinder.java:152)

The line in question is simply:

    SAXParserFactory factory = SAXParserFactory.newInstance();

Any thoughts? Thanks

1 Answer 1

0

Minify conflicts with ProGuard. Other posts report similar behaviors, just in different areas of code. Depends on the app. Code starts running but can have extremely odd behaviors. One one verson of my app it ran, but the XML parsing was returning bad values. In another, file output streams were being closed during use. Google should detect this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.