Add instructions to debug Java classes.
The Java compiler complains about deprecated features and unsafe operations, but it's surprisingly hard to get the details. Here's how.
This commit is contained in:
@@ -1,12 +1,17 @@
|
|||||||
import groovy.swing.SwingBuilder
|
import groovy.swing.SwingBuilder
|
||||||
import java.awt.GridBagLayout;
|
import java.awt.GridBagLayout
|
||||||
import java.awt.GridBagConstraints;
|
import java.awt.GridBagConstraints
|
||||||
import javax.swing.border.EmptyBorder;
|
import javax.swing.border.EmptyBorder
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
System.setProperty('java.awt.headless','false')
|
System.setProperty('java.awt.headless','false')
|
||||||
|
|
||||||
|
//Uncomment to debug deprecation warnings.
|
||||||
|
/* tasks.withType(JavaCompile) {
|
||||||
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
||||||
|
} */
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
||||||
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user