aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 44f00b879d7c4d602806c619f5bcc1a1af6cf78e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Qt plugin for Android Studio

This plugin supports the integration of Qt/QML projects into Android Studio projects.

### Functionality of the plugin

- You can import a Qt project from File > New > Import Qt Project...
- You'll need to give the path to a local qt-cmake file in Settings > Build, Execution, Deployment >
    Qt. For example a path might look like this: /home/user/Qt/6.5.0/android_x86_64/bin/qt-cmake.
- After the qt-cmake path is configured and the Qt project is imported, you can build the Qt project
    using Build > Build Qt Project.


### Dependencies

The plugin requires IntelliJ 2024.1.2 or newer i.e. Android Studio Koala Feature Drop or later.

### How to build

Create a `local.properties` file in the project root and set the following property to the path
of your local Android Studio path, for example for Linux:

```properties
android-studio.dir=~/android-studio/
```

On macOS

```properties
android-studio.dir=/Applications/Android\ Studio.app/Contents
```

To build the plugin, run the following:

```bash
./gradlew buildPlugin
```

If you don't have the JDK path set via JAVA_HOME or via Gradle parameter `-Dorg.gradle.java.home`.

```bash
./gradlew buildPlugin -Dorg.gradle.java.home=<path_to_jdk>
```

To do the plugin build and run Android Studio with the plugin in a sandbox environment,
run the following:

```bash
./gradlew runIde
```

If you run into the following error:

> Unsupported JVM architecture was selected for running Gradle tasks: x86_64.
  Supported architectures: aarch64

You might need to set a different JDK that supports arm64, or use the JDK shipped with
Android Studio.