From 30c780da596e7a9003f2edf3d2f3568f410eceeb Mon Sep 17 00:00:00 2001 From: Ezekiel Williams <86789546+ewilliams-zoot@users.noreply.github.com> Date: Mon, 16 May 2022 15:30:51 -0600 Subject: [PATCH] Add Android set up steps The version 0.4.1 uses a dependency that isn't on the default repositories for a new Flutter project. The way to fix this is by adding the jcenter repo to the repo list in the build.gradle file. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index f08f5ac..b9f4168 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,19 @@ iOS (only support> 11.0) you need to add this line in your ios/Podfile `platform :ios, '11.0'` ready-made in the [Example](https://github.com/AbdOoSaed/flutter_cached_pdfview/tree/master/example) + +#### Android +If you are using the most version 0.4.1, in your `android/build.gradle` file, add the jcenter repository. Otherwise, the project will fail to build due to failing to find certain dependencies. + +``` +allprojects { + repositories { + google() + mavenCentral() + jcenter() + } +} +``` ### Import it