Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions resources/views/docs/mobile/1/getting-started/environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ to develop and test your apps on a Simulator. However, you will need to enroll w

#### Note

You do not need to separately install the Java Development Kit (JDK). Android Studio will automatically install the
proper JDK for you.
You might need to install the Java Development Kit (JDK) separately. Recent versions of Android Studio no longer install it automatically.
If you encounter Gradle errors, check the [Gradle JDK Compatibility Matrix](https://docs.gradle.org/current/userguide/compatibility.html).
The latest JDK version may not be supported yet.

To check the installed Gradle version, examine the ``nativephp/android/.gradle`` folder after running ``php artisan native:install``.

</aside>

Expand Down Expand Up @@ -110,6 +113,8 @@ export PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$AND
```

#### On Windows
The example below assumes default installation paths for the Android SDK and JDK:

```shell
set ANDROID_HOME=C:\Users\yourname\AppData\Local\Android\Sdk
set PATH=%PATH%;%JAVA_HOME%\bin;%ANDROID_HOME%\platform-tools
Expand All @@ -118,6 +123,10 @@ set PATH=%PATH%;%JAVA_HOME%\bin;%ANDROID_HOME%\platform-tools
set JAVA_HOME=C:\Program Files\Microsoft\jdk-17.0.8.7-hotspot
```

### "No AVDs found" error
If you encounter this error, it means no Virtual Devices are configured in Android Studio.
To resolve it, open Android Studio, navigate to Virtual Devices, and create at least one device.

## Testing on Real Devices

You don't _need_ a physical iOS/Android device to compile and test your application, as NativePHP for Mobile supports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ If you experience a cURL error when running this command, make sure you are runn

#### Windows Performance Tip

Add `C:\temp` to your Windows Defender exclusions list to significantly speed up Composer
Add `C:\temp` as well as the project folder to your Windows Defender exclusions list to significantly speed up Composer
installs during app compilation. This prevents its real-time scanning from processing the many temporary files created
during the build process, which slows the process considerably.

Expand Down