Develop for android java issues
-
wrote on 15 Oct 2020, 07:48 last edited by
Yes the combobox was grayed (I set the entries in the xml file via text editor, now I can edit the boxes) and I restarted Qt creator.
-
Yes the combobox was grayed (I set the entries in the xml file via text editor, now I can edit the boxes) and I restarted Qt creator.
-
wrote on 15 Oct 2020, 08:49 last edited by
I meant qt Creator says Java settings are ok.
I didn't remember that version 8 is the recommended one, installed 15.
I will replace it by 8 now -
I meant qt Creator says Java settings are ok.
I didn't remember that version 8 is the recommended one, installed 15.
I will replace it by 8 nowwrote on 15 Oct 2020, 09:05 last edited by KroMignon@Phips04 said in Develop for android java issues:
I didn't remember that version 8 is the recommended one, installed 15.
Yes, it is no clearly defined ==> https://doc.qt.io/qt-5/android-building.html.
JDK 8, still recommended for best compatibility, but starting with Qt 5.15 JDK 11 could be used.Side note: if you search on internet
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
, all matches you will found will clearly detail the issue. The gradle version is not compatible with the selected JDK.
For Qt 5.15, the used gradle version is 5.6.4 (just check in<QT_DIR>/5.15.0/android/src/3rdparty/gradle/gradle/wrapper/gradle-wrapper.properties
) -
wrote on 15 Oct 2020, 15:20 last edited by
Ok, now finally it works. This is my very basic UI for testing
This is the sourcecode:
import QtQuick 2.15
import QtQuick.Window 2.15Window {
Rectangle {
id: rectangle
color: "#09a4cc"
anchors.fill: parentRectangle { id: rectangle1 x: 220 y: 117 width: 200 height: 200 color: "#4facfe" radius: height / 2 gradient: Gradient { GradientStop { position: 0 color: "#4facfe" } GradientStop { position: 1 color: "#00f2fe" } } } }
}
What it shows is simply a white screen.๐
-
Ok, now finally it works. This is my very basic UI for testing
This is the sourcecode:
import QtQuick 2.15
import QtQuick.Window 2.15Window {
Rectangle {
id: rectangle
color: "#09a4cc"
anchors.fill: parentRectangle { id: rectangle1 x: 220 y: 117 width: 200 height: 200 color: "#4facfe" radius: height / 2 gradient: Gradient { GradientStop { position: 0 color: "#4facfe" } GradientStop { position: 1 color: "#00f2fe" } } } }
}
What it shows is simply a white screen.๐
wrote on 15 Oct 2020, 15:46 last edited by@Phips04 I think you have to set property
visible
totrue
of topWindow
:import QtQuick 2.15 import QtQuick.Window 2.15 Window { visible: true // ==> default value is false! Rectangle { id: rectangle color: "#09a4cc" anchors.fill: parent ... } }
-
wrote on 15 Oct 2020, 18:52 last edited by Phips04
Ok, QT creator does not recongnize the property, but it compiles, and now it works the way it should,
thanks for your help๐ -
Ok, QT creator does not recongnize the property, but it compiles, and now it works the way it should,
thanks for your help๐
21/28