JonasCz / save-for-offline

Android app for saving webpages for offline reading.
GNU General Public License v2.0
139 stars 45 forks source link

Compilation issues #23

Closed ghost closed 8 years ago

ghost commented 8 years ago

Sorry to bother you again, here's the log:

:app:compileReleaseJava/home/krt/src/fdroiddata/build/jonas.tool.saveForOffline/app/src/main/java/jonas/tool/saveForOffline/PageSaver.java:288: error: Alternatives in a multi-catch statement cannot be related by subclassing
            } catch (IllegalArgumentException | IOException | FileNotFoundException e) {
                                                              ^
  Alternative FileNotFoundException is a subclass of alternative IOException
/home/krt/src/fdroiddata/build/jonas.tool.saveForOffline/app/src/main/java/jonas/tool/saveForOffline/MainActivity.java:400: error: method getPropertiesByPosition in class DisplayAdapter cannot be applied to given types;
                    String fileLocation = gridAdapter.getPropertiesByPosition(position, Database.FILE_LOCATION);
                                                     ^
  required: int,String
  found: Object,String
  reason: actual argument Object cannot be converted to int by method invocation conversion
/home/krt/src/fdroiddata/build/jonas.tool.saveForOffline/app/src/main/java/jonas/tool/saveForOffline/MainActivity.java:403: error: method getPropertiesByPosition in class DisplayAdapter cannot be applied to given types;
                    dataBase.delete(Database.TABLE_NAME, Database.ID + "=" + gridAdapter.getPropertiesByPosition(position, Database.ID), null);
                                                                                        ^
  required: int,String
  found: Object,String
  reason: actual argument Object cannot be converted to int by method invocation conversion
/home/krt/src/fdroiddata/build/jonas.tool.saveForOffline/app/src/main/java/jonas/tool/saveForOffline/FaviconFetcher.java:163: error: Alternatives in a multi-catch statement cannot be related by subclassing
        } catch (IllegalArgumentException | IOException | FileNotFoundException e) {
                                                          ^
  Alternative FileNotFoundException is a subclass of alternative IOException
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
 FAILED
JonasCz commented 8 years ago

Thanks, (should be) fixed now.

ghost commented 8 years ago

It is, indeed. Thanks for the quick response!