Getting started with Android in Oxygene

Marc,

I uninstalled Android Studio, re-installed it, created and started a new virtual device and successfully created an empty app in Android Studio and ran it and it ran on the virtual device I created.

Then I went into Water, created a new Android application, set the preferences for Diagnostic build, did a build and got this:

"C:\Program Files (x86)\RemObjects Software\Elements\Bin\EBuild.exe" "C:\Users\xxx\Documents\RemObjects Software\Elements\Water\Android\org.me.androidapplication5\org.me.androidapplication5.sln" --logger:fire --configuration:Debug --debug --statistics --verbosity:diagnostic "--xml:C:\Users\xxx\Documents\RemObjects Software\Elements\Water\Android\org.me.androidapplication5\obj\org.me.androidapplication5.water.xml" --build --setting:TreatFixableErrorsAsWarnings=True
RemObjects EBuild. An open source build engine for Elements and beyond.
Copyright RemObjects Software 2016-2019. All Rights Reserved. Created by marc hoffman.
Version 10.0.0.2385 (develop) built on talax, 20190315-162227. Commit aab5759.

   -> Task RemObjects.EBuild.BuildSolution started.
      -> Project org.me.androidapplication5 started.
         -> Task RemObjects.EBuild.Elements.ElementsBuildProject started for org.me.androidapplication5.
            -> Task RemObjects.EBuild.Elements.ElementsApplyLegacySettings started for org.me.androidapplication5, Cooper-Android.
               Mapping DefineConstants=DEBUG;TRACE; to ConditionalDefines
               Mapping AssemblyName=org.me.androidapplication5 to BinaryName
            <- Task RemObjects.EBuild.Elements.ElementsApplyLegacySettings finished for org.me.androidapplication5, Cooper-Android, took 0.0245s (0.0265s).
            -> Task RemObjects.EBuild.Elements.ElementsSanityCheck started for org.me.androidapplication5, Cooper-Android.
            <- Task RemObjects.EBuild.Elements.ElementsSanityCheck finished for org.me.androidapplication5, Cooper-Android, took 0.0000s (0.0010s).
            -> Task RemObjects.EBuild.Elements.ElementsPreparePlatforms started for org.me.androidapplication5.
               Preparing target 'Cooper-Android' (platform 'Cooper').
D:             Target-specific Settings, before prepare
D:               - <BinaryName = org.me.androidapplication5 [Target: Cooper-Android]>
D:               - <ConditionalDefines = DEBUG;TRACE; [Target: Cooper-Android]>
D:               - <Mode = Cooper [Target: Cooper-Android]>
D:               - <SubMode = Android [Target: Cooper-Android]>
               -> Task RemObjects.EBuild.Elements.ElementsPreflightCooper started for org.me.androidapplication5.
                  JDK found in 'C:\Program Files (x86)\Java\jdk1.8.0_161'.
                  Libraries found in 'C:\Program Files (x86)\Java\jdk1.8.0_161\jre\lib'.
                  Java executable found at 'C:\Program Files (x86)\Java\jdk1.8.0_161\jre\bin\java.exe'.
               <- Task RemObjects.EBuild.Elements.ElementsPreflightCooper finished for org.me.androidapplication5, took 0.0450s (0.0450s).
               -> Task RemObjects.EBuild.Elements.ElementsPrepareCooperPlatform started for org.me.androidapplication5, Cooper-Android.
               <- Task RemObjects.EBuild.Elements.ElementsPrepareCooperPlatform finished for org.me.androidapplication5, Cooper-Android, took 0.0170s (0.0630s).
               -> Task RemObjects.EBuild.Elements.ElementsPreflightAndroid started for org.me.androidapplication5.
                  Android SDK found in 'C:\Program Files (x86)\Android\android-sdk'.
                  Android Build Tools found in 'C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3'.
                  Android ApkBuilder found in 'C:\Program Files (x86)\Android\android-sdk\tools\lib\sdklib-26.0.0-dev.jar;C:\Program Files (x86)\Android\android-sdk\tools\lib\sdk-common-26.0.0-dev.jar;C:\Program Files (x86)\Android\android-sdk\tools\lib\common-26.0.0-dev.jar'.
               <- Task RemObjects.EBuild.Elements.ElementsPreflightAndroid finished for org.me.androidapplication5, took 0.0040s (0.0040s).
               -> Task RemObjects.EBuild.Elements.ElementsPrepareCooperAndroidPlatform started for org.me.androidapplication5, Cooper-Android.
                  No exact platform version was specified for target 'Cooper-Android', using android-28.
               <- Task RemObjects.EBuild.Elements.ElementsPrepareCooperAndroidPlatform finished for org.me.androidapplication5, Cooper-Android, took 0.0040s (0.0090s).
D:             Target-specific Settings, after prepare
D:               - <AarCacheFolder = C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\aar [Target: Cooper-Android]>
D:               - <AndroidPack = True [Target: Cooper-Android]>
D:               - <AndroidPlatformFolder = C:\Program Files (x86)\Android\android-sdk\platforms\android-28 [Target: Cooper-Android]>
D:               - <AndroidPlatformName = android-28 [Target: Cooper-Android]>
D:               - <BinaryName = org.me.androidapplication5 [Target: Cooper-Android]>
D:               - <ConditionalDefines = DEBUG;TRACE; [Target: Cooper-Android]>
D:               - <Mode = Cooper [Target: Cooper-Android]>
D:               - <SubMode = Android [Target: Cooper-Android]>
            <- Task RemObjects.EBuild.Elements.ElementsPreparePlatforms finished for org.me.androidapplication5, took 0.0820s (0.0840s).
            -> Task RemObjects.EBuild.Elements.ElementsResolveSourceFiles started for org.me.androidapplication5, Cooper-Android.
            <- Task RemObjects.EBuild.Elements.ElementsResolveSourceFiles finished for org.me.androidapplication5, Cooper-Android, took 0.0140s (0.0140s).
            -- Task RemObjects.EBuild.Elements.ElementsResolveHeaderImportFiles skipped for org.me.androidapplication5, Cooper-Android, condition not met.
            -> Task RemObjects.EBuild.Elements.ElementsPreCompile started for org.me.androidapplication5, Cooper-Android.
               -- Task RemObjects.EBuild.Elements.ElementsPreCompileEchoes skipped for org.me.androidapplication5, Cooper-Android, condition not met.
               -- Task RemObjects.EBuild.Elements.ElementsPreCompileToffee skipped for org.me.androidapplication5, Cooper-Android, condition not met.
               -> Task RemObjects.EBuild.Elements.ElementsPreCompileCooper started for org.me.androidapplication5, Cooper-Android.
                  -- Task RemObjects.EBuild.Elements.ElementsCooperProcessResources skipped for org.me.androidapplication5, Cooper-Android, condition not met.
                  -- Task Predex skipped for org.me.androidapplication5, Cooper-Android, condition not met.
                  -> Task RemObjects.EBuild.Elements.ElementsCooperResolveAndroidManifests started for org.me.androidapplication5, Cooper-Android.
                  <- Task RemObjects.EBuild.Elements.ElementsCooperResolveAndroidManifests finished for org.me.androidapplication5, Cooper-Android, took 0.0010s (0.0010s).
                  -> Task RemObjects.EBuild.Elements.ElementsCooperFindAndroidManifest started for org.me.androidapplication5, Cooper-Android.
                     Found Android Manifest: 'C:\Users\xxx\Documents\RemObjects Software\Elements\Water\Android\org.me.androidapplication5\Properties\AndroidManifest.android-xml'.
                  <- Task RemObjects.EBuild.Elements.ElementsCooperFindAndroidManifest finished for org.me.androidapplication5, Cooper-Android, took 0.0010s (0.0030s).
                  -> Task ProcessManifest started for org.me.androidapplication5, Cooper-Android.
                     Android build version is '28'.
                     Android manifest file is 'C:\Users\xxx\Documents\RemObjects Software\Elements\Water\Android\org.me.androidapplication5\Properties\AndroidManifest.android-xml'.
                  <- Task ProcessManifest finished for org.me.androidapplication5, Cooper-Android, took 0.0950s (0.0990s).
                  -- Task ProcessManifest skipped for org.me.androidapplication5, Cooper-Android, already ran.
                  -> Task ProcessResources started for org.me.androidapplication5, Cooper-Android.
D:                   "C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\aapt.exe" package -f -v --auto-add-overlay -M "C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\AndroidManifest.xml" -I "C:\Program Files (x86)\Android\android-sdk\platforms\android-28\android.jar" -J "C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\r" -F "C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\org.me.androidapplication5_step1.apk" -S "C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res"
                     aapt> Configurations:
                     aapt> (default)
                     aapt> ldpi-v4
                     aapt> mdpi-v4
                     aapt> hdpi-v4
                     aapt> xhdpi-v4
                     aapt> Files:
                     aapt> drawable\icon.png
                     aapt> Src: (ldpi-v4) C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-ldpi\icon.png
                     aapt> Src: (mdpi-v4) C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-mdpi\icon.png
                     aapt> Src: (hdpi-v4) C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-hdpi\icon.png
                     aapt> Src: (xhdpi-v4) C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-xhdpi\icon.png
                     aapt> layout\main.layout-xml
                     aapt> Src: () C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\layout\main.layout-xml
                     aapt> values\strings.xml
                     aapt> Src: () C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\values\strings.xml
                     aapt> AndroidManifest.xml
                     aapt> Src: () C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\AndroidManifest.xml
                     aapt> Resource Dirs:
                     aapt> Type drawable
                     aapt> drawable\icon.png
                     aapt> Src: (ldpi-v4) C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-ldpi\icon.png
                     aapt> Src: (mdpi-v4) C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-mdpi\icon.png
                     aapt> Src: (hdpi-v4) C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-hdpi\icon.png
                     aapt> Src: (xhdpi-v4) C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-xhdpi\icon.png
                     aapt> Type layout
                     aapt> layout\main.layout-xml
                     aapt> Src: () C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\layout\main.layout-xml
                     aapt> Type values
                     aapt> values\strings.xml
                     aapt> Src: () C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\values\strings.xml
                     aapt> Including resources from package: C:\Program Files (x86)\Android\android-sdk\platforms\android-28\android.jar
                     aapt> applyFileOverlay for drawable
                     aapt> applyFileOverlay for layout
                     aapt> applyFileOverlay for anim
                     aapt> applyFileOverlay for animator
                     aapt> applyFileOverlay for interpolator
                     aapt> applyFileOverlay for transition
                     aapt> applyFileOverlay for xml
                     aapt> applyFileOverlay for raw
                     aapt> applyFileOverlay for color
                     aapt> applyFileOverlay for menu
                     aapt> applyFileOverlay for mipmap
                     aapt> Processing image: C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.andProirdoacpeplsiscinagtion 5imag-e0:B B1E88C:3\DU8sCeFr8Cs\1mEt2i9eD7d4\C0DA12p937B5p1D3aBt1a8\8L1o6cFa\lD\eRbeumgO\bCjoeocptesr -SAonfdtrwoairde\\rEeBsu\idlrda\Owbajb\loer-gl.dmpe.ian\dircoiodna.pppnlgi
                     aapt> cation5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-mdpi\icon.png
                     aapt> Processing image: C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-hdpi\icon.png
                     aapt> Processing image: C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-xhdpi\icon.png
                     aapt> (processed image C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-ldpi\icon.png: 105% size of source)
                     aapt> (processed image C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-mdpi\icon.png: 104% size of source)
                     aapt> (processed image C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-hdpi\icon.png: 106% size of source)
                     aapt> (processed image C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\drawable-xhdpi\icon.png: 107% size of source)
                     aapt> (new resource id icon from ldpi-v4\drawable\icon.png #generated)
                     aapt> (new resource id icon from mdpi-v4\drawable\icon.png #generated)
                     aapt> (new resource id icon from hdpi-v4\drawable\icon.png #generated)
                     aapt> (new resource id icon from xhdpi-v4\drawable\icon.png #generated)
                     aapt> (new resource id main from C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\res\layout\main.layout-xml)
                     aapt> Writing symbols for class R.
                     aapt> Creating 'C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\org.me.androidapplication5_step1.apk'
                     aapt> Writing all files...
                     aapt> 'AndroidManifest.xml' (compressed 63%)
                     aapt> 'res/drawable-hdpi-v4/icon.png' (not compressed)
                     aapt> 'res/drawable-ldpi-v4/icon.png' (not compressed)
                     aapt> 'res/drawable-mdpi-v4/icon.png' (not compressed)
                     aapt> 'res/drawable-xhdpi-v4/icon.png' (not compressed)
                     aapt> 'res/layout/main.layout-xml' (compressed 53%)
                     aapt> 'resources.arsc' (not compressed)
                     aapt> Generated 7 files
                     aapt> Included 0 files from jar/zip files.
                     aapt> Checking for deleted files
                     aapt> Done!
                  <- Task ProcessResources finished for org.me.androidapplication5, Cooper-Android, took 0.7276s (0.7286s).
               <- Task RemObjects.EBuild.Elements.ElementsPreCompileCooper finished for org.me.androidapplication5, Cooper-Android, took 0.0000s (0.8346s).
               -- Task RemObjects.EBuild.Elements.ElementsPreCompileIsland skipped for org.me.androidapplication5, Cooper-Android, condition not met.
            <- Task RemObjects.EBuild.Elements.ElementsPreCompile finished for org.me.androidapplication5, Cooper-Android, took 0.0000s (0.9701s).
            -- Task RemObjects.EBuild.Elements.ElementsApplyLegacySettings skipped for org.me.androidapplication5, Cooper-Android, already ran.
            -- Task RemObjects.EBuild.Elements.ElementsPreparePlatforms skipped for org.me.androidapplication5, already ran.
            -> Task RemObjects.EBuild.Elements.ElementsCheckForTargetlessReferences started for org.me.androidapplication5.
            <- Task RemObjects.EBuild.Elements.ElementsCheckForTargetlessReferences finished for org.me.androidapplication5, took 0.0010s (0.0020s).
            -> Task RemObjects.EBuild.Elements.ElementsResolveReferences started for org.me.androidapplication5.
               -> Target Cooper-Android started.
                  -> Task RemObjects.EBuild.Elements.ElementsResolveCooperReferencesForTarget started for org.me.androidapplication5, Cooper-Android.
                     Reference 'android' was resolved to 'C:\Program Files (x86)\Android\android-sdk\platforms\android-28\android.jar' for target 'Cooper-Android'.
                     Reference 'cooper' was resolved to 'C:\Program Files (x86)\RemObjects Software\Elements\References\Cooper\cooper.jar' via XML for target 'Cooper-Android'.
                     Reference 'elements' was resolved to 'C:\Program Files (x86)\RemObjects Software\Elements\References\Cooper\elements.jar' via XML for target 'Cooper-Android'.
                  <- Task RemObjects.EBuild.Elements.ElementsResolveCooperReferencesForTarget finished for org.me.androidapplication5, Cooper-Android, took 0.0650s (0.0660s).
                  -- Task RemObjects.EBuild.Elements.ElementsProcessGradleReferences skipped for org.me.androidapplication5, Cooper-Android, condition not met.
                  -- Task ProcessAarReferences skipped for org.me.androidapplication5, Cooper-Android, condition not met.
               <- Target Cooper-Android finished.
            <- Task RemObjects.EBuild.Elements.ElementsResolveReferences finished for org.me.androidapplication5, took 0.0895s (0.0925s).
            -> Task RemObjects.EBuild.Elements.ElementsPreCompile2 started for org.me.androidapplication5, Cooper-Android.
               -- Task RemObjects.EBuild.Elements.ElementsPreCompile2Echoes skipped for org.me.androidapplication5, Cooper-Android, condition not met.
            <- Task RemObjects.EBuild.Elements.ElementsPreCompile2 finished for org.me.androidapplication5, Cooper-Android, took 0.0000s (0.0010s).
            -> Task RemObjects.EBuild.Elements.ElementsCompile started for org.me.androidapplication5.
D:             Loading compiler from 'C:\Program Files (x86)\RemObjects Software\Elements\Bin\RemObjects.Elements.dll'
               Compiling target 'Cooper-Android'
               -> Target Cooper-Android started compiling.
                  Starting compile for org.me.androidapplication5 Cooper-Android 
                  RemObjects Elements (Oxygene, C#, Swift and Java) Compiler for .NET, Cocoa, Java and Island.
                  Version 10.0.0.2385 (develop) built on talax, 20190315-162227. Commit aab5759.
                  Copyright 2003-2019 RemObjects Software, LLC. All rights reserved.
                  
                  Source file: C:\Users\xxx\Documents\RemObjects Software\Elements\Water\Android\org.me.androidapplication5\MainActivity.pas
                  Source file: C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\r\R.java
                  Reference: C:\Program Files (x86)\Android\android-sdk\platforms\android-28\android.jar
                  Reference: C:\Program Files (x86)\RemObjects Software\Elements\References\Cooper\cooper.jar
                  Reference: C:\Program Files (x86)\RemObjects Software\Elements\References\Cooper\elements.jar
                  -> Phase Resolving Bodies started.
                  <- Phase Resolving Bodies finished, took 1.3007s.
                  -> Phase Checking Members started.
                  <- Phase Checking Members finished, took 0.1010s.
                  -> Phase Generating Helper Types started.
                  <- Phase Generating Helper Types finished, took 0.1217s.
                  -> Phase Inlining code started.
                  <- Phase Inlining code finished, took 0.0210s.
                  -> Phase Pre-Simplifying Code started.
                  <- Phase Pre-Simplifying Code finished, took 0.0090s.
                  -> Phase Simplifying Code started.
                  <- Phase Simplifying Code finished, took 0.0670s.
                  -> Phase Flow Analysis started.
                  <- Phase Flow Analysis finished, took 0.0440s.
                  -> Phase Generating Output started.
                  <- Phase Generating Output finished, took 0.3579s.
               <- Target Cooper-Android finished compiling.
D:             CompilerOutput for Cooper-Android
D:               - <CompilerOutput: C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\org.me.androidapplication5.jar [Target: Cooper-Android]>
            <- Task RemObjects.EBuild.Elements.ElementsCompile finished for org.me.androidapplication5, took 4.8269s (5.9015s).
            -> Task RemObjects.EBuild.Elements.ElementsPostCompile started for org.me.androidapplication5, Cooper-Android.
               -- Task RemObjects.EBuild.Elements.ElementsPostCompileEchoes skipped for org.me.androidapplication5, Cooper-Android, condition not met.
               -- Task RemObjects.EBuild.Elements.ElementsPostCompileToffee skipped for org.me.androidapplication5, Cooper-Android, condition not met.
               -> Task RemObjects.EBuild.Elements.ElementsPostCompileCooper started for org.me.androidapplication5, Cooper-Android.
                  -> Task RemObjects.EBuild.Elements.ElementsCooperResolveAndroidFiles started for org.me.androidapplication5, Cooper-Android.
                  <- Task RemObjects.EBuild.Elements.ElementsCooperResolveAndroidFiles finished for org.me.androidapplication5, Cooper-Android, took 0.0000s (0.0010s).
                  -> Task AndroidPack started for org.me.androidapplication5, Cooper-Android.
D:                   AndroidManifest.xml merged to C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\AndroidManifest.xml
D:                   "C:\Program Files (x86)\Java\jdk1.8.0_161\jre\bin\java.exe" -Xmx1024M -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\lib\dx.jar" --dex --verbose --min-sdk-version=5 --incremental "--output=C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\classes.dex" --positions=lines "C:\Users\xxx\AppData\Local\RemObjects Software\EBuild\Obj\org.me.androidapplication5-0BB1E883D8CF8C1E29D74C0D12937B513B18816F\Debug\Cooper-Android\org.me.androidapplication5.jar" "C:\Program Files (x86)\RemObjects Software\Elements\References\Cooper\cooper.jar" "C:\Program Files (x86)\RemObjects Software\Elements\References\Cooper\elements.jar"
E:                   dex: Unknown option --min-sdk-version=5
                     dex> usage:
                     dex> dx --dex [--debug] [--verbose] [--positions=<style>] [--no-locals]
                     dex> [--no-optimize] [--statistics] [--[no-]optimize-list=<file>] [--no-strict]
                     dex> [--keep-classes] [--output=<file>] [--dump-to=<file>] [--dump-width=<n>]
                     dex> [--dump-method=<name>[*]] [--verbose-dump] [--no-files] [--core-library]
                     dex> [--num-threads=<n>] [--incremental] [--force-jumbo] [--no-warning]
                     dex> [--multi-dex [--main-dex-list=<file> [--minimal-main-dex]]
                     dex> [--input-list=<file>]
                     dex> [<file>.class | <file>.{zip,jar,apk} | <directory>] ...
                     dex> Convert a set of classfiles into a dex file, optionally embedded in a
                     dex> jar/zip. Output name must end with one of: .dex .jar .zip .apk or be a directory.
                     dex> Positions options: none, important, lines.
                     dex> --multi-dex: allows to generate several dex files if needed. This option is
                     dex> exclusive with --incremental, causes --num-threads to be ignored and only
                     dex> supports folder or archive output.
                     dex> --main-dex-list=<file>: <file> is a list of class file names, classes defined by
                     dex> those class files are put in classes.dex.
                     dex> --minimal-main-dex: only classes selected by --main-dex-list are to be put in
                     dex> the main dex.
                     dex> --input-list: <file> is a list of inputs.
                     dex> Each line in <file> must end with one of: .class .jar .zip .apk or be a directory.
                     dex> dx --annotool --annotation=<class> [--element=<element types>]
                     dex> [--print=<print types>]
                     dex> dx --dump [--debug] [--strict] [--bytes] [--optimize]
                     dex> [--basic-blocks | --rop-blocks | --ssa-blocks | --dot] [--ssa-step=<step>]
                     dex> [--width=<n>] [<file>.class | <file>.txt] ...
                     dex> Dump classfiles, or transformations thereof, in a human-oriented format.
                     dex> dx --find-usages <file.dex> <declaring type> <member>
                     dex> Find references and declarations to a field or method.
                     dex> declaring type: a class name in internal form, like Ljava/lang/Object;
                     dex> member: a field or method name, like hashCode
                     dex> dx -J<option> ... <arguments, in one of the above forms>
                     dex> Pass VM-specific options to the virtual machine that runs dx.
                     dex> dx --version
                     dex> Print the version of this tool (1.12).
                     dex> dx --help
                     dex> Print this message.
                  <- Task AndroidPack failed for org.me.androidapplication5, Cooper-Android, took 0.6622s (0.6642s).
               <- Task RemObjects.EBuild.Elements.ElementsPostCompileCooper failed for org.me.androidapplication5, Cooper-Android, took 0.0000s (0.6652s).
            <- Task RemObjects.EBuild.Elements.ElementsPostCompile failed for org.me.androidapplication5, Cooper-Android, took 0.0000s (0.6672s).
         <- Task RemObjects.EBuild.Elements.ElementsBuildProject failed for org.me.androidapplication5, took 0.0000s (6.5717s).
      <- Project org.me.androidapplication5 failed, took 6.5817s.
      Project 'org.me.androidapplication5' failed to build.
      Solution 'org.me.androidapplication5' failed to build all projects.
   <- Task RemObjects.EBuild.BuildSolution failed for org.me.androidapplication5, took 6.6023s (6.6063s).

     net time    gross time   task
-------------  ------------   -------------------------------
       0.000s        0.001s   ElementsSanityCheck 
       0.000s        0.834s   ElementsPreCompileCooper 
       0.000s        0.970s   ElementsPreCompile 
       0.000s        0.001s   ElementsPreCompile2 
       0.000s        0.000s   ElementsCooperResolveAndroidFiles 
       0.000s        0.665s   ElementsPostCompileCooper 
       0.000s        0.667s   ElementsPostCompile 
       0.000s        6.568s   ElementsLink 
       0.000s        6.569s   ElementsDetermineFinalOutput 
       0.000s        6.571s   ElementsCopyFinalOutput 
       0.000s        6.580s   ElementsBuildProject 
       0.000s        0.000s   ElementsCooperResolveAndroidManifests 
       0.001s        0.001s   ElementsCheckForTargetlessReferences 
       0.001s        0.003s   ElementsCooperFindAndroidManifest 
       0.003s        0.003s   ElementsPreflightAndroid 
       0.004s        0.009s   ElementsPrepareCooperAndroidPlatform 
       0.013s        0.013s   ElementsResolveSourceFiles 
       0.016s        0.072s   ElementsPrepareCooperPlatform 
       0.024s        0.031s   ElementsApplyLegacySettings 
       0.045s        0.045s   ElementsPreflightCooper 
       0.065s        0.067s   ElementsResolveCooperReferencesForTarget 
       0.082s        0.084s   ElementsPreparePlatforms 
       0.089s        0.092s   ElementsResolveReferences 
       0.094s        0.098s   ElementsCooperGenerateAndroidManifestFile 
       0.662s        0.664s   ElementsCooperAndroidPack 
       0.727s        0.728s   ElementsCooperGenerateAndroidResources 
       4.826s        6.568s   ElementsCompile 
       6.602s        6.606s   BuildSolution 

Iā€™m guessing I need a new SDK version so Iā€™ll try to find that and try again. Iā€™m guessing the SDK came either from the Android Studio install or the Android stuff from Xamarin in Visual Studio.

thatā€™s an old version of DX. note the 25.0.3. If you note my reply in the other thread, I was using 29.0.0, the current. so yours is 4 years behind.

Open and SADK Manager in Android Studio, and update to newer tools (I think 26 or 27 and later should do it, but Iā€™d go with latest, always.

I thought I did that. But Iā€™ll look again and see what I missed.

ā€¦ time passes ā€¦

Iā€™m guessing the problem may be that the Android Studio created that SDK Location under MY USER. I didnā€™t ask for that, Iā€™m almost certain because I would not have guessed AppData\Local.

Now what should I do? How is Water determining to use the OLD one? Do I change something somewhere so it looks where Android Studio put it? Or do I change Android Studio to put it where it looks? Or both? Or something else?

Can you also check what version subfolder(s) exist in C:\Program Files (x86)\Android\android-sdk\build-tools? just 25 or also different ones? it could be an issue with our logic for picking the best one (but Iā€™d be surprised)

That old version is the only one that is in that folder. (see my previous post for hints)

Ok, good, that means EBuild is doing the right thing ;).

I see where Water has the path for the Java and Android stuff, but the fields appear grayed out. I assume they are disabled, though as I type this, I wonder if they are grayed because they havenā€™t been altered. Will check.

ā€¦ time passes ā€¦

odd, you can type in there, but it doesnā€™t save it. (probably ought to prevent keystrokes there if we canā€™t change it)

Note that the tools are managed separately from the SDKs themselves, on a second tab:

Here is what I have:

What should I do? We look the same? Maybe install that thing that says there is an update?

ā€¦ time passes ā€¦

I installed that thing that said there was an update, created a new Android application and it still complained about the option. Iā€™m guessing it is still not finding things in my local data.

ā€¦ time passes ā€¦

I tried changing the path to where it was looking. Although it took the path, it complained about it being readonly. Which is sort of reasonable since it is in ā€œprogram filesā€ and Windows doesnā€™t really want you messing about in there anymore. And so it didnā€™t actually put anything there.

I suppose I could figure out how to manually copy stuff there, but it looks like we are trying to put it in a place that it doesnā€™t want it.

And we should maybe be changing something else?

next step?

click the [-] next to Android SDK Build tools to change it to a [āˆš], and then press OK to install the update. That UI is very misleading, if you actually have 25 installed but it shows like thisā€¦

Already did that.

No idea, but none of these are going to help. You need to get the tools updated.

WAIT:

C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\lib\dx.jar"

this does not match the path thats shown in the dialog. (AppData\Local\Android\SDK). it looks like you have TWO copies of the4 Android SDK installed, and youā€™ve sent Water to use the one in Program Files, but Android Studio is updating the one in Users.

Change there Android SDK setting in Water to point to the right one.

The tools DID update. But in the ā€œC:\Users\xxx\AppData\Local\Android\Sdk\build-toolsā€ folder. That folder now has the 28.0.3 and 29.0.0-rc2.

The problem I think is that Water doesnā€™t look where Android Studio is putting stuff.

^^^

(also, I recommend uninstalling/deleting the second copy, to avoid any chance for future confusionā€¦)

Earlier, I pointed out that I couldnā€™t change the Water ones. They are grayed out and donā€™t save changes.

Is there some other place to change them? I donā€™t recall telling either Water or Android Studio where it should be getting or putting stuff. I think I just defaulted in both environments.

Shall I maybe uninstall Water and try re-installing it?

Iā€™m guessing Android Studio put in the SDK stuff AND Visual Studio put in the OLD one for Xamarin, but just a guess.

If Water shows a gray value, thats the value it detected by default (eg thats stored somewhere in the registry at a default location). you should be able to change the path, and and if its valid, the value will persists. The custom value you provide there will be stored in %APPDATA%\RemObjects Software\Elements\CooperPaths.xml, you can also edit it manually there.

hereā€™s what mine looks like:

<?xml version="1.0" standalone="no"?>
<paths>
	<jdk>/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home</jdk>
	<androidsdk>/Users/Shared/Android/sdk</androidsdk>
</paths>

(I cannot reproduce not being able to change the path inside Water. if I enter a different path, as long as its valid, it gets accepted, and will show in black instead of gray.)