Notifications
Clear all

[Solved] package com.onenetwork.platform.data.model does not exist  

   RSS

0

A developer is trying to run the Build target after adding Java code in the Writing Workflows section of the Bookstore Tutorials.

He gets the following error message:

   [javac] C:\OneSDK_NEO3.2\studio-workspace\Bookstore2\build\gen-src\com\mybooks\mpt\ZBKSBookConstants.java:5: error: package com.onenetwork.platform.data.model does not exist

    [javac] import com.onenetwork.platform.data.model.DefaultModelActions;

    [javac]                                          ^

    [javac] C:\OneSDK_NEO3.2\studio-workspace\Bookstore2\build\gen-src\com\mybooks\mpt\ZBKSBookConstants.java:16: error: cannot find symbol

    [javac]   public class Actions extends DefaultModelActions {

    [javac]                                ^

    [javac]   symbol:   class DefaultModelActions

    [javac]   location: class ZBKSBookConstants

    [javac] C:\OneSDK_NEO3.2\studio-workspace\Bookstore2\build\gen-src\com\mybooks\mpt\ZBKSConstants.java:5: error: package com.onenetwork.platform.data.model does not exist

    [javac] import com.onenetwork.platform.data.model.DefaultModelActions;

What causes this and how do we resolve it?

Topic Tags
1 Answer
0

This happened because the developer had run Project -> Clean from the main menu of Studio.

Instead, the developer should use the Ant target "clean" in order to clean the project. That target can be found in the Ant window after importing the build.xml file for the module.

"ant build" worked successfully after first running the "ant clean" target.

© 2020 One Network Enterprises. All rights reserved. Privacy Policy