johanlkarlsson/microlog4android — Issue #7: Can't Build (FileAppender and PatternFormatter not found)
Author: mattprecious
Created: 2011-11-01 05:52:00+00:00
State: open

I'm trying to build from the source using the instructions in the README file, and it's failing saying that it can't find the classes FileAppender or PatternFormatter. They're definitely in their proper folders...

Here's my terminal session. I tried to clean it up a bit, but it's still a little noisy.

Script started on Tue 01 Nov 2011 01:28:43 AM EDT
archmini% gradle -b build-android_lib.gradle
> Resolve dependencies 'classpath' > Resolve dependencies 'classpath' > Resolve dependencies ':classpath'ANDROID SDK: /home/matt/src/android-sdk-linux
> :initAndroidFiles:initAndroidFiles
> :createModifiedJarFile:createModifiedJarFile

BUILD SUCCESSFUL

Total time: 24.543 secs
archmini%gradle eclipse
> Resolve dependencies 'classpath' > Resolve dependencies ':classpath'The 'urls' property of the RepositoryHandler.mavenRepo() method is deprecated and will be removed in a future version of Gradle. You should use the 'url' property to define the core maven repository & the 'artifactUrls' property to define any additional artifact locations.

> Resolve dependencies ':microlog4android-slf4j-impl:classpath' > Resolve dependencies ':microlog4android-core-tests:classpath' > Resolve dependencies ':microlog4android-core:classpath' > Resolve dependencies ':microlog4android-slf4j-impl:compile' > Resolve dependencies ':compile' > Resolve dependencies ':microlog4android-integration-tests:classpath' > :microlog4android-core:eclipseClasspath > Resolve dependencies ':microlog4android-core:testRuntime' > Resolve dependencies 'detachedConfiguration1':microlog4android-core:eclipseClasspath
> :microlog4android-core-tests:eclipseClasspath > Resolve dependencies ':microlog4android-core-tests:testRuntime' > Resolve dependencies 'detachedConfiguration1':microlog4android-core-tests:eclipseClasspath
> :microlog4android-slf4j-impl:eclipseClasspath > Resolve dependencies ':microlog4android-slf4j-impl:testRuntime' > Resolve dependencies 'detachedConfiguration1':microlog4android-slf4j-impl:eclipseClasspath
> :eclipseClasspath > Resolve dependencies ':testRuntime' > Resolve dependencies 'detachedConfiguration1':eclipseClasspath
> :microlog4android-core:eclipseJdt:microlog4android-core:eclipseJdt
> :microlog4android-core-tests:eclipseJdt:microlog4android-core-tests:eclipseJdt
> :microlog4android-slf4j-impl:eclipseJdt:microlog4android-slf4j-impl:eclipseJdt
> :eclipseJdt:eclipseJdt
> :microlog4android-core:eclipseProject:microlog4android-core:eclipseProject
> :microlog4android-core-tests:eclipseProject:microlog4android-core-tests:eclipseProject
> :microlog4android-slf4j-impl:eclipseProject:microlog4android-slf4j-impl:eclipseProject
> :eclipseProject:eclipseProject
> :microlog4android-core:eclipse:microlog4android-core:eclipse
> :microlog4android-core-tests:eclipse:microlog4android-core-tests:eclipse
> :microlog4android-slf4j-impl:eclipse:microlog4android-slf4j-impl:eclipse
> :eclipse:eclipse
> :microlog4android-integration-tests:eclipseClasspath > Resolve dependencies ':microlog4android-integration-tests:testRuntime' > Resolve dependencies 'detachedConfiguration1':microlog4android-integration-tests:eclipseClasspath
> :microlog4android-integration-tests:eclipseJdt:microlog4android-integration-tests:eclipseJdt
> :microlog4android-integration-tests:eclipseProject:microlog4android-integration-tests:eclipseProject
> :microlog4android-integration-tests:eclipse:microlog4android-integration-tests:eclipse

BUILD SUCCESSFUL

Total time: 12.769 secs
archmini%gradle
> Resolve dependencies 'classpath' > Resolve dependencies ':classpath'The 'urls' property of the RepositoryHandler.mavenRepo() method is deprecated and will be removed in a future version of Gradle. You should use the 'url' property to define the core maven repository & the 'artifactUrls' property to define any additional artifact locations.

> Resolve dependencies ':microlog4android-slf4j-impl:classpath' > Resolve dependencies ':microlog4android-core-tests:classpath' > Resolve dependencies ':microlog4android-core:classpath' > Resolve dependencies ':microlog4android-slf4j-impl:compile' > Resolve dependencies ':compile' > Resolve dependencies ':microlog4android-integration-tests:classpath' > :microlog4android-core:clean:microlog4android-core:clean
> :microlog4android-core:compileJava > Resolve dependencies ':microlog4android-core:compile':microlog4android-core:compileJava
> :microlog4android-core:compileJava/home/matt/src/microlog4android/microlog4android-core/src/main/java/com/google/code/microlog4android/config/PropertyConfigurator.java:275: cannot find symbol
> :microlog4android-core:compileJavasymbol : class FileAppender
> :microlog4android-core:compileJavalocation: class com.google.code.microlog4android.config.PropertyConfigurator
> :microlog4android-core:compileJava	if(appender instanceof FileAppender)
> :microlog4android-core:compileJava	^
> :microlog4android-core:compileJava/home/matt/src/microlog4android/microlog4android-core/src/main/java/com/google/code/microlog4android/config/PropertyConfigurator.java:296: cannot find symbol
> :microlog4android-core:compileJavasymbol : class FileAppender
> :microlog4android-core:compileJavalocation: class com.google.code.microlog4android.config.PropertyConfigurator
> :microlog4android-core:compileJava	((FileAppender)appender).setFileName(fileName);
> :microlog4android-core:compileJava	^
> :microlog4android-core:compileJava/home/matt/src/microlog4android/microlog4android-core/src/main/java/com/google/code/microlog4android/config/PropertyConfigurator.java:300: cannot find symbol
> :microlog4android-core:compileJavasymbol : class FileAppender
> :microlog4android-core:compileJavalocation: class com.google.code.microlog4android.config.PropertyConfigurator
> :microlog4android-core:compileJava	((FileAppender)appender).setAppend(append_bool);
> :microlog4android-core:compileJava	^
> :microlog4android-core:compileJava/home/matt/src/microlog4android/microlog4android-core/src/main/java/com/google/code/microlog4android/config/PropertyConfigurator.java:322: cannot find symbol
> :microlog4android-core:compileJavasymbol : class PatternFormatter
> :microlog4android-core:compileJavalocation: class com.google.code.microlog4android.config.PropertyConfigurator
> :microlog4android-core:compileJava	if(formatter instanceof PatternFormatter){
> :microlog4android-core:compileJava	^
> :microlog4android-core:compileJava/home/matt/src/microlog4android/microlog4android-core/src/main/java/com/google/code/microlog4android/config/PropertyConfigurator.java:324: cannot find symbol
> :microlog4android-core:compileJavasymbol : class PatternFormatter
> :microlog4android-core:compileJavalocation: class com.google.code.microlog4android.config.PropertyConfigurator
> :microlog4android-core:compileJava	((PatternFormatter) formatter).setPattern(pattern);
> :microlog4android-core:compileJava	^
> :microlog4android-core:compileJava5 errors
> :microlog4android-core:compileJava
FAILURE:
Build failed with an exception.

* What went wrong:
Execution failed for task ':microlog4android-core:compileJava'.
Cause: Compile failed; see the compiler error output for details.

* Try:
Run with
--stacktrace
option to get the stack trace. Run with
--info
or
--debug
option to get more log output.

BUILD FAILED

Total time: 12.924 secs
archmini%exit

Script done on Tue 01 Nov 2011 01:30:24 AM EDT