vstirbu / ZeroConf

ZeroConf plugin for Cordova/Phonegap 3.0
MIT License
38 stars 21 forks source link

mdns and maven error while installing plugin #21

Closed cajay01 closed 7 years ago

cajay01 commented 8 years ago

add to body class: platform-android ANDROID_HOME=D:\csetups\Android\sdk JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79 No target specified, deploying to device '4d0081304bf041af'.

FAILURE: Build failed with an exception.

vstirbu commented 8 years ago

Seems like a maven issue in your environment (Connection to https://repo1.maven.org refused). Are you behind a proxy? The jmdns package is available there if going by browser.

cajay01 commented 8 years ago

yes ,I am behind the proxy

vstirbu commented 8 years ago

follow the instructions here: http://maven.apache.org/guides/mini/guide-proxies.html

cajay01 commented 8 years ago

hey I got access to open nw but after that I got errorin util package

:compileDebugJavaWithJavacandroid\src\com\triggertrap\ZeroConf.java:31: error: package org.apache.http.conn.util does not exist import org.apache.http.conn.util.InetAddressUtils; ^ FAILED

BUILD FAILED

vstirbu commented 8 years ago

try this: https://github.com/macdonst/cordova-plugin-zeroconf/commit/dad0f3ce6f2794300a904c1eb57b69886754c139

cajay01 commented 8 years ago

Done.. Thank you!!!

cajay01 commented 8 years ago

hey I am facing new issue of legacy.jar file

Installing "cordova-zeroconf-plugin" for android Failed to install 'cordova-zeroconf-plugin':Uh oh! "D:\Projects\ProximityProfile\Mobile Application\Source Code\Android\plugins\cordova-zeroconf-plugin\src\android\libs\org.apache.http.legacy.jar" not found!

vstirbu commented 8 years ago

Browse the fork that I've indicated earlier and copy the jar. Is in the second/Android/libs