Android Build failing when compiled using Fire on Mac OS X

Build is failing with below console log, please suggest:

mono /Applications/Fire.app/Contents/Resources/Mono/lib/mono/4.5/xbuild.exe /Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.sln /nologo /target:Build /verbosity:normal /property:Configuration=Release “/property:ElementsXbuildNougatSDKFolder=/Applications/Fire.app/Contents/Resources/Nougat SDKs” “/property:ElementsXbuildReferencePathsXMLFolder=/Applications/Fire.app/Contents/Resources/Reference Paths” /toolsversion:4.0

Build started 5/19/2015 11:11:37 PM.


Project “/Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.sln” (Build target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration “Release|AnyCPU”.
Target Build:
Project “/Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.elements” (default target(s)):
Target CooperPreflight:
JDKRoot:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
JRERoot:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Created directory "./bin/Release/"
Created directory "obj/Release/"
Target ResolveAssemblyReferences:
Reference: android.jar
Could not locate the reference android.jar
Reference: swift.jar
Reference: com.remobjects.elements.rtl.jar
Target CooperAndroidBeforeCompile:
XML: /Users/devarshi/Library/Application Support/RemObjects Software/Elements/CooperPaths.xml
: error GR1: Could not locate aapt
Task “GenerateAndroidResources” execution – FAILED
Done building target “CooperAndroidBeforeCompile” in project “/Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.elements”.-- FAILED
Done building project “/Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.elements”.-- FAILED
Task “MSBuild” execution – FAILED
Done building target “Build” in project “/Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.sln”.-- FAILED
Done building project “/Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.sln”.-- FAILED

Build FAILED.
Errors:

/Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.sln (Build) ->
(Build target) ->
/Users/devarshi/Desktop/org.me.BlueDiamond/org.me.BlueDiamond.elements (default targets) ->
/Applications/Fire.app/Contents/Resources/XbuildTargets/RemObjects Software/Oxygene/RemObjects.Oxygene.Cooper.Android.targets (CooperAndroidBeforeCompile target) ->

    : error GR1: Could not locate aapt

     0 Warning(s)
     1 Error(s)

Time Elapsed 00:00:00.2910550

Sounds like you don’t have the Android SDK installed properly? Check out http://docs.elementscompiler.com/Fire/Setup/AndroidSDK/ for details.

Thanks for the reference link :blush:

To resolve this problem I followed below steps:

  1. Launched android studio installed on my mac
  2. From ‘File’ menu selected ‘Project Structure…’
  3. Copied the path which it was showing in SDK location
  4. Launched ‘Fire’
  5. Selected ‘Preferences’ from ‘Fire’ menu
  6. Pasted the copied path in ‘Android Folder’ text field

It worked :heart_eyes:

1 Like