Skip to content

Commit 6d634b3

Browse files
committed
updated README.md for runtime error unable to get provider androidx.startup.InitializationProvider on running app on device or emulator
1 parent ca613f2 commit 6d634b3

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
<p float="left">
2020
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/ss_1.png" width="288" />
21-
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/ss_2.png" width="288" />
21+
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/ss_2.png" width="288" />
2222
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/ss_3.png" width="288" />
2323
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/ss_4.png" width="288" />
24-
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/ss_5.png" width="288" />
24+
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/ss_5.png" width="288" />
2525
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/ss_6.png" width="288" />
2626
</p>
2727

@@ -120,6 +120,21 @@ Before you begin, you should have already downloaded the Android Studio SDK and
120120

121121
9. If the app was built successfully, you can test it by running it on either a real device or an emulated one by going to *Run > Run 'app'* or pressing the Run icon in the toolbar.
122122

123+
- *Note:* Disable automatic initialization for all components in case of runtime error `Unable to get provider androidx.startup.InitializationProvider` on running app on device or emulator.
124+
125+
- add dependency
126+
`implementation "androidx.startup:startup-runtime:1.0.0"`
127+
128+
- include in manifest
129+
```<merge>
130+
<application>
131+
<provider
132+
android:name="androidx.startup.InitializationProvider"
133+
android:authorities="${applicationId}.androidx-startup"
134+
tools:node="remove" />
135+
</merge>
136+
</application>
137+
123138
10. **To enable the sharing features to a different account, add API_KEY/ APP_ID associated with accounts**. Add the Keys in `constant.java` and `strings.xml`. Following are the links to developer pages of account. Go there to create apps and get keys.
124139
* Nextcloud: https://docs.nextcloud.com/server/stable/developer_manual/
125140
* Twitter: https://dev.twitter.com

0 commit comments

Comments
 (0)