throw new AaptException("Could not get parent of file '" + f.getAbsolutePath() + "'");
Files.createParentDirs(outputFile); } catch (IOException e) { throw new AaptException(e, String.format( "Failed to create parent directories for file '%s'", output.getAbsolutePath())); futureResult = mCruncher.crunchPng(key, file, outputFile); } catch (PngException e) { throw new AaptException(e, String.format( "Failed to crunch file '%s' into '%s'", file.getAbsolutePath(),
throws AaptException { if (packageConfig.getManifestFile() == null) { throw new AaptException("Manifest file not set."); throw new AaptException("aapt options not set."); throw new AaptException("Android target not set."); throw new AaptException("Logger not set."); throw new AaptException("Build tools not set."); throw new AaptException("Variant type not set."); throw new AaptException("Neither source output dir nor resource output dir were " + "set, but at least one must be."); throw new AaptException( String.format( "Splits for densities \"%1$s\" were " throw new AaptException( String.format( "Inconsistent density configuration, with " throw new AaptException("Previous features set but no base feature set.");
.forEach((p) -> builder.add("-R", p.toString())); } catch (IOException e) { throw new AaptException("Failed to walk path " + config.getResourceDir()); builder.add("-o", tmpOutput.getAbsolutePath()); } catch (IOException e) { throw new AaptException("No output apk defined and failed to create tmp file", e); throw new AaptException( String.format("When using splits in tools 21 and above, " + "resConfigs should not contain any densities. Right now, it " throw new AaptException("Cannot filter assets for multiple densities using " + "SDK build tools 21 or later. Consider using apk splits instead.");
throw new AaptException( String.format("When using splits, " + "resConfigs should not contain any densities. Right now, it " throw new AaptException("Cannot filter assets for multiple densities using " + "SDK build tools 21 or later. Consider using apk splits instead.");