Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Highlighted
Developer
Posts: 587
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA
Accepted Solution

Error: Type was not found or was not a compile-time constant: AlertDialog.

I attempted compiling one of my PlayBook AIR applications using the BB10 AIR SDK tonight and got:

 

Error: Type was not found or was not a compile-time constant: AlertDialog.

 

The command I used to compile was:

 

set JAVA_HOME=E:\Program Files (x86)\Java\jre7
set PATH=%PATH%;E:\Program Files\Research In Motion\blackberry-tablet-sdk-3.0.0\bin

cd E:\Users\Daniel\Dropbox\Apps\iTunesSync\Version0.3
mxmlc +configname=air -library-path+=. iTunesSync.as -o iTunesSync.swf -swf-version=10

 

This works if I use 2.0.0 of the SDK, but does not if I use 3.0.0.

 

Strange.

 

I've confirmed that AlertDialog is still present:

 

https://developer.blackberry.com/air/beta/apis/qnx/dialog/AlertDialog.html#includeExamplesSummary

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Error: Type was not found or was not a compile-time constant: AlertDialog.

Did you include the needed ANE under frameworks/libs/qnx/ane?
Developer
Posts: 587
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: Error: Type was not found or was not a compile-time constant: AlertDialog.

Not that I know of. Has that changed? Does my call to mxmlc need to be changed?

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Error: Type was not found or was not a compile-time constant: AlertDialog.

In BB10, Device and Skins (and others) require the ANE to be loaded with the installation.
Developer
Posts: 587
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: Error: Type was not found or was not a compile-time constant: AlertDialog.

Gotcha, thanks. Is there a document that explains all of this? (I was hoping there was, but didn't see one)

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Error: Type was not found or was not a compile-time constant: AlertDialog.

There is a thread or two on this.