Subject: Re: [openvehicles/Open-Vehicle-Android] Compilation errors trying to build the app (#63)
From: Glyn Hudson <[email-masked]>
To: openvehicles/Open-Vehicle-Android <[email-masked]>
Cc: Subscribed <[email-masked]>
Date: Wed, 08 Aug 2018 16:12:29 -0700
List-Id: openvehicles/Open-Vehicle-Android <Open-Vehicle-Android.openvehicles.github.com>

Update: looks like the message output provides some more clues. Some resources seem to be missing:

```
Executing tasks: [:OpenVehicleApp:assembleDebug]

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
:OpenVehicleApp:buildInfoDebugLoader
:LuttuLibrary:preBuild UP-TO-DATE
:LuttuLibrary:preDebugBuild UP-TO-DATE
:LuttuLibrary:compileDebugAidl UP-TO-DATE
:LuttuLibrary:compileDebugRenderscript UP-TO-DATE
:LuttuLibrary:checkDebugManifest UP-TO-DATE
:LuttuLibrary:generateDebugBuildConfig UP-TO-DATE
:LuttuLibrary:generateDebugResValues UP-TO-DATE
:LuttuLibrary:generateDebugResources UP-TO-DATE
:LuttuLibrary:packageDebugResources UP-TO-DATE
:LuttuLibrary:platformAttrExtractor UP-TO-DATE
:LuttuLibrary:processDebugManifest UP-TO-DATE
:LuttuLibrary:generateDebugRFile UP-TO-DATE
:LuttuLibrary:prepareLintJar UP-TO-DATE
:LuttuLibrary:generateDebugSources UP-TO-DATE
:LuttuLibrary:javaPreCompileDebug
Note: /media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/LuttuLibrary/src/main/java/com/luttu/CameraCall.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:LuttuLibrary:compileDebugJavaWithJavac
:LuttuLibrary:processDebugJavaRes NO-SOURCE
:LuttuLibrary:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:OpenVehicleApp:preBuild UP-TO-DATE
:OpenVehicleApp:preDebugBuild UP-TO-DATE
:OpenVehicleApp:compileDebugAidl UP-TO-DATE
:LuttuLibrary:packageDebugRenderscript NO-SOURCE
:OpenVehicleApp:compileDebugRenderscript UP-TO-DATE
:OpenVehicleApp:checkDebugManifest UP-TO-DATE
:OpenVehicleApp:generateDebugBuildConfig UP-TO-DATE
:OpenVehicleApp:prepareLintJar UP-TO-DATE
:OpenVehicleApp:mainApkListPersistenceDebug UP-TO-DATE
:OpenVehicleApp:generateDebugResValues UP-TO-DATE
:OpenVehicleApp:generateDebugResources UP-TO-DATE
:OpenVehicleApp:processDebugGoogleServices
:OpenVehicleApp:mergeDebugResources UP-TO-DATE
:OpenVehicleApp:createDebugCompatibleScreenManifests UP-TO-DATE
:OpenVehicleApp:processDebugManifest
:OpenVehicleApp:splitsDiscoveryTaskDebug UP-TO-DATE
:OpenVehicleApp:processDebugResources
:OpenVehicleApp:generateDebugSources
:OpenVehicleApp:javaPreCompileDebug
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/witdet/ReversedSeekBar.java:7: error: cannot find symbol
import android.support.v7.widget.AppCompatSeekBar;
                                ^
  symbol:   class AppCompatSeekBar
  location: package android.support.v7.widget
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/witdet/ReversedSeekBar.java:9: error: cannot find symbol
public class ReversedSeekBar extends AppCompatSeekBar {
                                     ^
  symbol: class AppCompatSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:148: error: incompatible types: View cannot be converted to ReversedSeekBar
		ReversedSeekBar bar = (ReversedSeekBar) findViewById(R.id.tabInfoSliderChargerControl);
		                                                    ^
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:149: error: cannot find symbol
		bar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
		   ^
  symbol:   method setOnSeekBarChangeListener(<anonymous OnSeekBarChangeListener>)
  location: variable bar of type ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:558: error: incompatible types: View cannot be converted to ReversedSeekBar
		ReversedSeekBar bar = (ReversedSeekBar) findViewById(R.id.tabInfoSliderChargerControl);
		                                                    ^
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:569: error: cannot find symbol
			bar.setVisibility(View.INVISIBLE);
			   ^
  symbol:   method setVisibility(int)
  location: variable bar of type ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:585: error: cannot find symbol
				bar.setVisibility(View.INVISIBLE);
				   ^
  symbol:   method setVisibility(int)
  location: variable bar of type ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:623: error: cannot find symbol
				bar.setVisibility(View.VISIBLE);
				   ^
  symbol:   method setVisibility(int)
  location: variable bar of type ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:636: error: cannot find symbol
						bar.setProgress(100);
						   ^
  symbol:   method setProgress(int)
  location: variable bar of type ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:644: error: cannot find symbol
						bar.setProgress(100);
						   ^
  symbol:   method setProgress(int)
  location: variable bar of type ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:656: error: cannot find symbol
						bar.setProgress(0);
						   ^
  symbol:   method setProgress(int)
  location: variable bar of type ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/InfoFragment.java:669: error: cannot find symbol
						bar.setProgress(100);
						   ^
  symbol:   method setProgress(int)
  location: variable bar of type ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/witdet/ReversedSeekBar.java:18: error: cannot find symbol
			paramCanvas.scale(-1.0F, 1.0F, getWidth() / 2.0F, getHeight() / 2.0F);
			                               ^
  symbol:   method getWidth()
  location: class ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/witdet/ReversedSeekBar.java:18: error: cannot find symbol
			paramCanvas.scale(-1.0F, 1.0F, getWidth() / 2.0F, getHeight() / 2.0F);
			                                                  ^
  symbol:   method getHeight()
  location: class ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/witdet/ReversedSeekBar.java:21: error: cannot find symbol
			super.onDraw(paramCanvas);
			^
  symbol:   variable super
  location: class ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/witdet/ReversedSeekBar.java:29: error: cannot find symbol
			paramMotionEvent.setLocation(getWidth() - paramMotionEvent.getX(),
			                             ^
  symbol:   method getWidth()
  location: class ReversedSeekBar
/media/chrx/2C6DBC5732C3E088/android-dev/Open-Vehicle-Android/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/witdet/ReversedSeekBar.java:32: error: cannot find symbol
		return super.onTouchEvent(paramMotionEvent);
		       ^
  symbol:   variable super
  location: class ReversedSeekBar
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
17 errors
:OpenVehicleApp:compileDebugJavaWithJavac FAILED
:OpenVehicleApp:buildInfoGeneratorDebug

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':OpenVehicleApp:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openvehicles/Open-Vehicle-Android/issues/63#issuecomment-411583088