应用程序依赖性错误' sap.m':'未找到描述符'

时间:2017-01-25 10:33:49

标签: manifest sapui5 launchpad

在Fiori启动板上部署我的应用程序我在控制台上发现了以下错误:

Error in application dependency 'sap.ui.core': 'No descriptor was found'
Error in application dependency 'sap.m': 'No descriptor was found'
Error in application dependency 'sap.ui.layout': 'No descriptor was found'

在manifest.json文件中,我声明了以下依赖项:

"dependencies": {
        "minUI5Version": "1.34.0",
        "libs": {
            "sap.ui.core": {
                "minVersion": "1.34.0"
            },
            "sap.m": {
                "minVersion": "1.34.0"
            },
            "sap.ui.layout": {
                "minVersion": "1.34.0"
            }
        }
    },

我不知道问题是什么,有人可以帮助我吗? 感谢。

2 个答案:

答案 0 :(得分:0)

你是否在你所写的内容之上包含以下内容?

#include <iostream>
#include <memory>
#include <string>
#include <vector>
using namespace std;

class Test {
private:
    string _name;
    vector<unique_ptr<Test>> _list;
public:
    explicit Test(const string& S) : _name(S) { }

    string to_string() const {
        string s("[");
        s += _name;

        for (auto const& p : _list) {
            s += ",";
            s += p->to_string();
        }

        s += "]";
        return s;
    }

    Test& add(const string& S) {
        _list.push_back(make_unique<Test>(S));
        return *(_list.back());
    }
};

int main() {
    Test x("one");
    x.add("two");
    Test& y = x.add("three");
    y.add("four");

    cout << y.to_string() << '\n';
    cout << x.to_string() << '\n';
}

答案 1 :(得分:0)

完整的manifest.json是:

 {
    "_version": "1.3.0",
    "sap.app": {
        "_version": "1.3.0",
        "id": "com.roberto",
        "type": "application",
        "i18n": "i18n/i18n.properties",
        "applicationVersion": {
            "version": "1.0.0"
        },
        "title": "{{appTitle}}",
        "description": "{{appDescription}}",
        "sourceTemplate": {
            "id": "ui5template.basicSAPUI5ApplicationProject",
            "version": "1.38.11"
        }
    },
    "sap.ui": {
        "_version": "1.3.0",
        "technology": "UI5",
        "deviceTypes": {
            "desktop": true,
            "tablet": true,
            "phone": true
        },
        "supportedThemes": [
            "sap_bluecrystal"
        ]
    },
    "sap.ui5": {
        "_version": "1.2.0",
        "rootView": {
            "viewName": "com.roberto.view.CollectionBoard",
            "type": "XML"
        },
        "dependencies": {
            "minUI5Version": "1.34.0",
            "libs": {
                "sap.ui.core": {},
                "sap.m": {},
                "sap.ui.layout": {}
            }
        },
        "contentDensities": {
            "compact": false,
            "cozy": true
        },
        "models": {
            "i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "settings": {
                    "bundleName": "com.roberto.i18n.i18n"
                }
            },
            "CollectionTree": {
                "type": "sap.ui.model.json.JSONModel",
                "uri": "model/prdt_collections_tree.json"
            }
        },
        "resources": {
            "css": [
                {
                    "uri": "css/custom.css"
                }
            ]
        },
        "routing": {
            "config": {
                "routerClass": "sap.m.routing.Router",
                "viewType": "XML",
                "viewPath": "com.roberto.view",
                "controlId": "collboard",
                "controlAggregation": "pages",
                "bypassed": {
                    "target": "notFound"
                }
            },
            "routes": [
                {
                    "pattern": "",
                    "name": "collections",
                    "target": "TargetCollections"
                },
                {
                    "pattern": "detail/{collectionPath}",
                    "name": "RouteDetails",
                    "target": "TargetDetails"
                },
                {
                    "pattern": "AddCollection",
                    "name": "RouteAdd",
                    "target": "TargetAdd"
                }
            ],
            "targets": {
                "TargetCollections": {
                    "viewName": "CollectionBoard",
                    "viewType": "XML",
                    "viewLevel": 1
                },
                "TargetDetails": {
                    "viewName": "CollectionDetails",
                    "viewType": "XML",
                    "viewLevel": 2
                },
                "TargetAdd": {
                    "viewName": "AddCollection",
                    "viewType": "XML",
                    "viewLevel": 2
                },
                "notFound": {
                    "viewName": "NotFound",
                    "transition": "show"
                }
            }
        }
    },
    "sap.platform.hcp": {
        "uri": "webapp",
        "_version": "1.1.0"
    }
}