08:45:03.043 [ERROR] [org.gradle.BuildExceptionReporter]
08:45:03.047 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
08:45:03.047 [ERROR] [org.gradle.BuildExceptionReporter]
08:45:03.049 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
08:45:03.050 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':app:compileDebugJavaWithJavac'.
08:45:03.050 [ERROR] [org.gradle.BuildExceptionReporter] > Compilation failed; see the compiler error output for details.
08:45:03.056 [ERROR] [org.gradle.BuildExceptionReporter]
08:45:03.057 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
08:45:03.059 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Creates a combined proguard file ${project.name}-combined.pro | |
* put files in `project/app/proguard/{proguardfile}` | |
* Usage: proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'app-combined.pro' | |
*/ | |
task proguardConfiguration { task -> | |
println "${project.name}:${task.name}" | |
def output = new File("${project.projectDir}/${project.name}-combined.pro") | |
delete file(output); | |
fileTree("proguard").visit { FileVisitDetails details -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.ResolveInfo; | |
import android.content.res.AssetFileDescriptor; | |
import android.database.Cursor; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Matrix; | |
import android.media.ExifInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2015 - Nathan Barraille | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
File -> Project Structure -> SDK Location
JDK Location: /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
echo "export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk" >> ~/.bash_profile
source ~/.bash_profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: http://developer.android.com/preview/j8-jack.html | |
android { | |
defaultConfig { | |
jackOptions { | |
enabled true | |
} | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 |
adb shell ifconfig | grep 'inet addr' | grep -v 127.0.0.1 | cut -d: -f2 | awk '{print $1}'
Bash Alias - Note $ escaping $
alias androidIp="adb shell ifconfig | grep 'inet addr' | grep -v 127.0.0.1 | cut -d: -f2 | awk '{print \$1}'"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- REPLACE ${SCHEMA}, ${USER}, ${PASSWORD} | |
SET GLOBAL FOREIGN_KEY_CHECKS = 0; | |
DROP SCHEMA `${SCHEMA}`; | |
CREATE SCHEMA `${SCHEMA}`; | |
USE `${SCHEMA}`; | |
-- EJB TimerService | |
CREATE TABLE IF NOT EXISTS `${SCHEMA}`.EJB__TIMER__TBL ( | |
`CREATIONTIMERAW` BIGINT NOT NULL, | |
`BLOB` BLOB, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
fullpath=$1 | |
filename=$(basename "$1") | |
extension="${filename##*.}" | |
filename="${filename%.*}" | |
dzip="${filename}.zip" | |
cp "$fullpath" "${dzip}" | |
unzip -o "${dzip}" -d "/tmp/${filename}" |
NewerOlder