[Owncloud] Maven compilation fails on MediaService.java:[160, 40] cannot find symbol symbol : variable MEDIA_ERROR_UNSUPPORTED

nodje nodje.co at gmail.com
Fri Aug 9 04:58:03 UTC 2013


I've posted an issue on github already about this  233
<https://github.com/owncloud/android/issues/233>  

I've been trying to get the project to compile with Maven.
I had to upgrade the android-maven-plugin from 3.5.0 to version 3.6.1 to get
it to work, but then I end up with the following errors during compilation:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/nodje/Documents/project/ext/owncloud/android/src/com/owncloud/android/media/MediaService.java:[160,40]
cannot find symbol
symbol : variable MEDIA_ERROR_UNSUPPORTED
location: class android.media.MediaPlayer
[ERROR]
/Users/nodje/Documents/project/ext/owncloud/android/src/com/owncloud/android/media/MediaService.java:[167,40]
cannot find symbol
symbol : variable MEDIA_ERROR_IO
location: class android.media.MediaPlayer
[ERROR]
/Users/nodje/Documents/project/ext/owncloud/android/src/com/owncloud/android/media/MediaService.java:[174,40]
cannot find symbol
symbol : variable MEDIA_ERROR_MALFORMED
location: class android.media.MediaPlayer
[ERROR]
/Users/nodje/Documents/project/ext/owncloud/android/src/com/owncloud/android/media/MediaService.java:[181,40]
cannot find symbol
symbol : variable MEDIA_ERROR_TIMED_OUT
location: class android.media.MediaPlayer
[INFO] 4 errors

Also, I noticed
[WARNING] File encoding has not been set, using platform encoding MacRoman,
i.e. build is platform dependent!

you should set the encoding you use for your sources in the
maven-compile-plugin. (I presume UTF-8)

I humbly propose my help if you need some help with the Maven pom.xml
config, as i have been using it for years, i may be able to help out a
little.

As for the setup_env.sh compilation option, I can't get it to work either:

it stops on the android update project -p actionbarsherlock/library line
with the following error:

[WARNING] File encoding has not been set, using platform encoding MacRoman,
i.e. build is platform dependent!

help welcome, cheers




--
View this message in context: http://owncloud.10557.n7.nabble.com/Maven-compilation-fails-on-MediaService-java-160-40-cannot-find-symbol-symbol-variable-MEDIA-ERROR-UD-tp10370.html
Sent from the ownCloud mailing list archive at Nabble.com.



More information about the Owncloud mailing list