I upgraded my ubuntu 14.04 to 14.10 to use the latest ubuntu-sdk. But When I created a simple UI project there is just a red wave line under the "import Ubuntu.Components.1.1". So I moved my mouse to the red wave line. A window poped up showing like this literally:
Errors while reading typeinfo files:
Failed to parse 'usr/lib/x86_64-linux-gnu/qt5/Ubuntu/Component/plugins.qmltypes'.
Error:/usr/lib/x86_64-linux-gnu/qt3/qml/Ubuntu/Components/plugins.qmltypes:632:19:Expected string literal to contain 'Package/Name major.minor' or 'Name major.minor'.
/usr/lib/x86_64-linux-gnu/qt3/qml/Ubuntu/Components/plugins.qmltypes:633:36:Expected array literal with only number literal members.
What does this lines mean? How can I solve these problems?
import Ubuntu.Components 1.1
, with a space instead of a period between the module and the version. But that shouldn't lead to the error you report. Can you check that this is correct? Second, some of the error lines report qt5 while others say qt3. If this is true, then your Qt install is really messed up. But perhaps you mis-typed. Can you clarify?