Esri / quickstart-map-phonegap

ArcGIS JavaScript samples for use with PhoneGap/Cordova
35 stars 37 forks source link

mutipleDefine error when using js api locally #17

Closed a13668349935 closed 8 years ago

a13668349935 commented 8 years ago

i use some sample code to test phonegap map. when I use js api on the cdn ,it works fine. then i build a custom js api using bower,and copy the code in this page: https://developers.arcgis.com/javascript/3/jshelp/inside_phonegap.html it return a multipleDefine error. image

i am using js api 3.17 and phonegap 6.3.0

a13668349935 commented 8 years ago

could you give me the whole sample project which contains custom build js api.

andygup commented 8 years ago

Take a look at the index_jquerymobilegps_localarcgis.html sample.

Make sure you reference the main dojo.js file pathname correctly.

The order in which theJavaScript libraries are loaded in that sample is important. Changing the order in which libraries are loaded can lead to life-cycle errors.

Let us know if this works?

a13668349935 commented 8 years ago

i use http://jso.arcgis.com/ to build my js api.and i worked.thanks