Found Unknown component error

Hello everybody, i was working on app inventor sources and there I have added a new component, which is my QRCodeGenerator extension, but after doing all the required things told in this guide but as my component is non visible i don't have added Mock view
https://docs.google.com/document/u/0/d/1xk9dMfczvjbbwD-wMsr-ffqkTlE3ga0ocCE1KOb2wvw/pub

But it's showing me error when loading the project and the error is
Unknown component: QRCodeGenerator

Can you share the whole error and share the source code

@Aarush_Kumar this is the full error

and code contains nothing, only one block which adds number, i was just testing how to add a new component

1 Like

I have checked the runtime error by logging in as admin and found this log

[INFO] DesignToolbar added project nothinh with id 6192449487634432
[INFO] ViewerBox: switching the content in the viewer box
[INFO] ProjectEditor: got onLoad for project 6192449487634432
[INFO] YaProjectEditor got onShow() for project 6192449487634432
[INFO] AssetList: switching projects from 0 to 6192449487634432
[INFO] AssetList: refreshing for project 6192449487634432
[ERROR] java.lang.UnsupportedOperationException: unknown component: QRCodeGenerator

    Unknown.Exception_0(ode-0.js)
    Unknown.RuntimeException_0(ode-0.js)
    Unknown.UnsupportedOperationException_0(ode-0.js)
    Unknown.createMockComponent(ode-0.js)
    Unknown.$getCachedMockComponent(ode-0.js)
    Unknown.$getImage(ode-0.js)
    Unknown.SimplePaletteItem(ode-0.js)
    Unknown.$addComponent_5(ode-0.js)
    Unknown.$loadComponents_0(ode-0.js)
    Unknown.YaFormEditor(ode-0.js)
    Unknown.$addFormEditor(ode-0.js)
    Unknown.$loadProject(ode-0.js)
    Unknown.execute_69(ode-0.js)
    Unknown.runScheduledTasks(ode-0.js)
    Unknown.$flushPostEventPumpCommands(ode-0.js)
    Unknown.execute_146(ode-0.js)
    Unknown.execute_145(ode-0.js)
    Unknown.apply_10(ode-0.js)
    Unknown.entry0(ode-0.js)
    Unknown.entry_0/<(ode-0.js)
    Unknown.callback(ode-0.js)
    Unknown.anonymous(Unknown)

[ERROR] File a bug report for this error.

@ewpatton sir, will you please help me

Sorry for tagging

I have asked @Ct_tricks about this issue, and he has told me the solution and it worked fine,
@Ct_tricks sir told me to run ant clean and after that i ran ant noplay and now my app inventor sources are working well

Thank You Ct_tricks sir

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.