Skip to content
This repository was archived by the owner on Oct 8, 2023. It is now read-only.

Commit bb9f46c

Browse files
authored
Merge pull request #37 from Microsoft/bugfix/client-building
Add troubleshooting steps for building mobile client
2 parents 831fffb + 671da7d commit bb9f46c

File tree

4 files changed

+7902
-14
lines changed

4 files changed

+7902
-14
lines changed

MobileClient/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Ensure that you have the Android SDK downloaded
3636
To download the native plugins and setup the cordova android project run:
3737

3838
``` Bash
39-
ionic cordova platform add android
39+
ionic cordova platform add android@6.4.0
4040
```
4141

4242
#### Android Build and run
@@ -53,6 +53,24 @@ To run the application on a device or emulator:
5353
ionic cordova run android
5454
```
5555

56+
#### Android troubleshooting
57+
58+
In some environments, building fresh clones may fail with the errors:
59+
60+
``` Bash
61+
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
62+
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
63+
```
64+
65+
To solve these issues, go to the `plugin/` directory, search for "com.android.support:support-v4:+" and replace it with "com.android.support:support-v4:27.1.0".
66+
67+
Then remove and add the Android platform directory using the commands:
68+
69+
``` Bash
70+
ionic cordova platform remove android
71+
ionic cordova platform add [email protected]
72+
```
73+
5674
### iOS
5775

5876
#### iOS Prerequisites

MobileClient/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
<param name="ios-package" onload="true" value="CDVStatusBar" />
7474
</feature>
7575
<allow-navigation href="http://10.104.242.8:8100" />
76-
<engine name="android" spec="~6.3.0" />
7776
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
7877
<plugin name="cordova-plugin-whitelist" spec="^1.3.1" />
7978
<plugin name="cordova-plugin-console" spec="^1.0.5" />
@@ -91,4 +90,5 @@
9190
<variable name="ALWAYS_USAGE_DESCRIPTION" value="This app requires background tracking enabled" />
9291
<variable name="MOTION_USAGE_DESCRIPTION" value="This app requires motion detection" />
9392
</plugin>
93+
<engine name="android" spec="6.4.0" />
9494
</widget>

0 commit comments

Comments
 (0)