When I want to add pushe unity plugin to my app I saw the following error.
Anybody know whats going wrong?
Failed to compile resources with the following parameters:
-bootclasspath ".../UNITY/android-sdk\platforms\android-21\android.jar" -d
"..\unity-sample-master\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8
"co\ronash\pushe\Manifest.java"
"co\ronash\pushe\R.java"
"com\google \android\gms\Manifest.java"
"com\google\android\gms\R.java"
"com\google\android\gms \base\Manifest.java"
"com\google\android\gms\base\R.java"
warning: [options] source value 1.6 is obsolete and will be removed in a future release
warning: [options] target value 1.6 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
UnityEditor.HostView:OnGUI()
It seems that your unity is using java 1.6
for compiling your project.
According to my experience, unity 5 needs java 1.8
or higher. This applies to most recent unity plugins which are built with recent versions of unity, including Pushe plugin
.
So try changing the java version which your unity uses to 1.8
or above following below path:
Edit -> Preferences -> External tools
Hope it helps.