Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am getting the following error when adding a toolbar action to my Ubuntu SDK project: "Could not resolve the prototype 'UnityActions.Action' of 'Action'. (M301)"

How can I resolve this issue and add toolbars?

Here is the code I am using (Straight from http://developer.ubuntu.com/api/ubuntu-12.10/qml/mobile/qml-ubuntu-components0-toolbaritems.html):

 tools: ToolbarItems {
        ToolbarButton {
            action: Action {
                text: "button"
                iconSource: Qt.resolvedUrl("icon.png")
                onTriggered: print("success!")
        locked: true
        opened: true
share|improve this question
I get the 'UnityActions.Action' of 'Action'. (M301) too.. But the code runs fine with 'QML Scene'. I don´t get any error in the 'Application Output'. –  Voidcode Aug 14 '13 at 9:31
I get that too. But it isn't a fatal problem for me, the app still runs. Are you using Ubuntu 13.04 or 13.10? –  iBelieve Aug 14 '13 at 18:19
13.04 Everything runs fine for me now. Still get the error but it is working now. Don't understand why it wouldn't debug before. –  bmandesign Aug 15 '13 at 18:57
Can you verify if this problem exists yet? otherwise we may close the question. –  Patil Aditya Apr 11 at 6:59
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.