[Fixed] Errors running Juce Demo for Android on Windows/OSX Emulator


#1

Hi, new to this so just finding my way, but trying to run the Juce Demo and getting the following errors:

Information:Gradle tasks [:app:assembleDebug_Debug]
Error:error: use of undeclared identifier 'getifaddrs’
Error:error: member access into incomplete type 'struct ifaddrs’
Information:note: forward declaration of 'ifaddrs’
Error:error: expected ')'
Information:note: to match this '('
Error:error: member access into incomplete type 'struct ifaddrs’
Information:note: forward declaration of 'ifaddrs’
Error:error: member access into incomplete type 'struct ifaddrs’
Information:note: forward declaration of 'ifaddrs’
Error:error: member access into incomplete type 'struct ifaddrs’
Information:note: forward declaration of 'ifaddrs’
Error:error: member access into incomplete type 'struct ifaddrs’
Information:note: forward declaration of 'ifaddrs’
Error:error: member access into incomplete type ‘struct ifaddrs’


#2

Hmmm that’s really odd. Did you change the build tools version or the SDK target version?


#3

Build tools were left at 25.0.2. Tried SDK level 10 and 25…


#4

btw, I’m on develop branch


#5

I’ve updated the title as really this is an issue running rather than building it would seem


#6

Yes this is an issue with a very recent commit: https://github.com/julianstorer/JUCE/commit/e09c2b65a18dae09a4a3fffa81ffc909a1851a0b

You can undo that commit for now while I work on a fix.


#7

OK. A Temporary fix (disabling IPv6 on Android) has been pushed to develop.


#8

Thx, will try this eve and report back


#9

Looking good now, thanks