Select to view content in your preferred language

Runtime error with new 3.4 API

1516
13
Jump to solution
07-30-2013 07:51 AM
IsaiahAguilera
Frequent Contributor
Can anyone explain why I get these errors when running a mobile application with the new 3.4 api. 

Class mx.controls:: DateField could not be found.

Class com.esri.ags.skins.fieldClasses::CalendarField could not be found.


I can have a completely blank mobile project and add a simple.
<esri:Map id="map"> </esri:Map>

And these errors come up when running a simulation.  Comment out the map portion and they go away. These run errors seem to go away if I switch back to the 3.3 esri api also.  I'm not sure if i'm missing something but this usually works right out of the box so I am a bit baffled.  Any help would be great thanks.
Tags (2)
0 Kudos
13 Replies
LloydHeberlie
Regular Contributor
That was it. I used "default" instead of "defaults". Renaming it and running a clean made it all work.  Thanks for all of your help with this.  It is very appreciated.


You can also find a sample of this solutions below.
https://github.com/lheberlie/building-mobile-apps-flex/tree/develop/samples/basic-project-map
0 Kudos
KathleenBrenkert
Regular Contributor
I'm using Flash Builder 4.7.  The above fix was working until I went and updated eclipse.  now I have 5 new warnings.  Any ideas on which skin could be causing them?

The style backgroundColor is only supported by type mx.containters.Panel with the theme(s) 'halo,spark'.
The style borderAlpha is only supported by type mx.containters.Panel with the theme(s) 'halo,spark'.
The style borderColor is only supported by type mx.containters.Panel with the theme(s) 'halo,spark'.
The style cornerRadius is only supported by type mx.containters.Panel with the theme(s) 'halo,spark'.
The style corner Radius is only supported by the type mx.coreContainer with the theme(s) 'halo, spark'
0 Kudos
KathleenBrenkert
Regular Contributor
so it appears the upgrade corrupted my application.  I am able to apply this fix to all new mobile projects and it clears the warnings I get.  My original project still has warnings regardless of what I do, I've had to recreate it.

However even with this fix I can not get a release build to export using 3.4 or 3.5. I've described my error messages in another thread:
http://forums.arcgis.com/threads/93772-Flex-Mobile-using-3.4-or-3.5-compile-problems?p=334705&posted...

My guess is these issues are related.  I've gone back to using the 3.3 api, it works flawlessly for me.
0 Kudos
IsaiahAguilera
Frequent Contributor
After that thread I still had release build problems also. I was able to solve it by making an additional change to the AttributeInspectorSkin. I had to change the memoField to use a text field. This solved my problem, not sure it will solve yours but your welcome to try.

<fx:Component id="memoField">
            <fieldClasses:MemoField minWidth="200"/>
</fx:Component>


Change To:
 <fx:Component id="memoField">
            <fieldClasses:TextField minWidth="200"/>
</fx:Component>


Also I am on 3.4 and I am no referencing the mx.swc or sparksskins.swc at all. Everything compiles and release builds fine.

Hope This Helps,
0 Kudos