distriqt/ANE-CustomResources

Build Failed - android SDK folder used wrong.

leossmith opened this issue · 3 comments

When I try to build for android, I get the following error:

[exec] * What went wrong: [exec] A problem occurred configuring project ':app'. [exec] > The SDK directory 'E:\Development\2_ANE\ANE-CustomResources-master\platform\android\E:Androidsdk' does not exist.

It looks like the path of my android sdk is used wrong.

This is from my build.config:

air.sdk = E:\\Development\\SDKs\\4161_33
android.sdk = E:\\Android\\sdk

Any ideas?

I have the same problem here, did you figure it out how to fix it?

You might have to modify the script to correctly pass the Windows path. Seems to be picking it up as a relative path on your system.

thank you @marchbold , problem finally solved.
Info for who will have the same issue in Windows.

in build.xml:
<!-- PROPERTIES --> <copy file="${android.dir}/template/local.properties" tofile="${android.dir}/local.properties" overwrite="true" > <filterchain> <tokenfilter> <replacestring from="@ANDROIDSDK@" to="${android.sdk}"/> </tokenfilter> </filterchain> </copy>

Change this:
<replacestring from="@ANDROIDSDK@" to="${android.sdk}"/> </tokenfilter>

With this:
<replacestring from="@ANDROIDSDK@" to="C:/Your/User/Path/To/Android/Sdk"/> </tokenfilter>