I am building an Android application using IBM Worklight. I keep getting the follow errors:
android build failed: java.net.UnknownHostException: nodename nor servname provided, or not known
Application 'WellPointMobile' with environment 'android' build finished with errors.
How can I stop these errors from appearing in Eclipse?
答案 0 :(得分:-1)
This is not related to Worklight, but to OS X and Java.
Have you searched the error in Google?
You can also edit your hosts file: Open Terminal and:
hostname
; copy the value.Type sudo vi /etc/hosts
; type your password
My hosts file looks like this:
127.0.0.1 mbp-idan localhost
255.255.255.255 broadcasthost ::1 localhost
You should see something similar. Simply add your hostname after "127.0.0.1".