From c70b20614873d1f658b3d8cee74c8476640c2f30 Mon Sep 17 00:00:00 2001 From: Jeff Gilbert Date: Thu, 1 Nov 2018 13:08:49 -0700 Subject: [PATCH] Add development troubleshooting tips to README. (#701) --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 22f54fb3d..8b411324b 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ git clone git@github.com:MozillaReality/FirefoxReality.git *Clone the third-party repo.* -If you're developing for the Oculus, Snapdragon VR, or VIVE, you need to clone the repo with third-party SDK files. +If you're developing for the Oculus, Snapdragon VR, or VIVE, you need to clone the repo with third-party SDK files. ```bash git clone git@github.com:MozillaReality/FirefoxReality-android-third-party.git third_party @@ -93,6 +93,26 @@ geckoViewLocalArm=/path/to/your/build/geckoview-nightly-armeabi-v7a-64.0.2018092 geckoViewLocalX86=/path/to/your/build/geckoview-nightly-x86-64.0.20180924100359.aar ``` +## Development troubleshooting + +### `Device supports , but APK only supports armeabi-v7a[...]` + +Enable usb debugging on the device. + +### `Could not get unknown property 'geckoViewLocal' for build 'FirefoxReality'[...]` + +```bash +./mach build +./mach package +./mach android archive-geckoview +find $objdir -name *.aar +echo "geckoViewLocalArm=$objdir/gradle/build/mobile/android/geckoview/outputs/aar/geckoview-official-withGeckoBinaries-noMinApi-release.aar" > $FirefoxReality/user.properties +``` + +### Firefox > Web Developer > WebIDE > Performance gets stuck with greyed out "stop and show profile" + +Restart FxR and close and re-open the WebIDE page. + ## Debugging tips - When using the native debugger you can ignore the first SIGSEGV: address access protected stop in GV thread. It's not a crash; you can click *Resume* to continue debugging.