How can I add gwt material jar files in app inventor?

I want to try GWT material design library GWT Material Design
i added its jar file in appinventor/lib/gwt_material directory and added the classpath in build.xml file
like this

<pathelement location="${lib.dir}/gwt_material/gwt-material.jar" />

then i reference MaterialButton in mockbutton.java file
but when i build the project using ant command i get error something like this

[java]    [ERROR] Errors in 'file:/home/devarsh/mit/appinventor-sources/appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockButtonBase.java'
     [java]       [ERROR] Line 105: No source code is available for type gwt.material.design.client.ui.MaterialButton; did you forget to inherit a required module?
     [java]    Tracing compile failure path for type 'com.google.appinventor.client.editor.simple.components.MockButtonBase'
     [java]       [ERROR] Errors in 'file:/home/devarsh/mit/appinventor-sources/appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockButtonBase.java'
     [java]          [ERROR] Line 105: No source code is available for type gwt.material.design.client.ui.MaterialButton; did you forget to inherit a required module?
     [java]    [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

If anyone has tried this before can you please help me with using gwt material design? Thanks

1 Like

@Devarsh_Mavani Make sure that you are also adding the appropriate <inherits> tag to the YaClient.gwt.xml file in the appengine module.

1 Like

Thanks @ewpatton it worked. Is there any documentation or any way I can know version of the gwt jars currently being used by app inventor?

We are using a patched version of GWT 2.8.1.

1 Like

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