From d4349486f53e24e31c93b4201ca218a0bc8670be Mon Sep 17 00:00:00 2001 From: Varinder Kumar Maurya Date: Sat, 2 Jan 2021 16:51:29 +0530 Subject: [PATCH 1/4] I Add one Helpfuull point in README file --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a14f2af9d..14b77fae9 100755 --- a/README.md +++ b/README.md @@ -114,6 +114,12 @@ Before you begin, you should have already downloaded the Android Studio SDK and - Copy all the files from *"OpenCV-android-sdk/sdk/native/staticlibs"* to *"phimpme-android/app/src/main/staticlibs"* (create directory if it doesn't exist) - Now build your project. If your build fails then try deleting these build directories *"phimpme-android/app/.externalNativeBuild"* and *"phimpme-android/app/build"*, if they exist and run the build again. + - *Note:* If you receive a Gradle sync error titled, "executing external native build for ndkBuild ...User\Project\phimpme-android\app\src\main\jni\Android.mk",Then you go to the file *"app/build.gradle"* and make those lines *"externalNativeBuild { + ndkBuild { + path 'src/main/jni/Android.mk' + } + }"* comment. + 7. If build error still persist, try replacing ndk with ndk version 18b from [ndk-archives](https://developer.android.com/ndk/downloads/older_releases) . Once all build errors have been resolved, you should be all set to build the app and test it. 8. To Build the app, go to *Build > Make Project* (or alternatively press the Make Project icon in the toolbar). From b77057341f399ca29136fa2592541a9d2519612f Mon Sep 17 00:00:00 2001 From: Varinder Kumar Maurya Date: Sat, 2 Jan 2021 19:54:11 +0530 Subject: [PATCH 2/4] Add a Note in Point no.6 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14b77fae9..66a572adc 100755 --- a/README.md +++ b/README.md @@ -118,8 +118,8 @@ Before you begin, you should have already downloaded the Android Studio SDK and ndkBuild { path 'src/main/jni/Android.mk' } - }"* comment. - + + 7. If build error still persist, try replacing ndk with ndk version 18b from [ndk-archives](https://developer.android.com/ndk/downloads/older_releases) . Once all build errors have been resolved, you should be all set to build the app and test it. 8. To Build the app, go to *Build > Make Project* (or alternatively press the Make Project icon in the toolbar). From 4389900d5ef2e8a0b85fa312b54993450d039e77 Mon Sep 17 00:00:00 2001 From: Varinder Kumar Maurya Date: Sat, 2 Jan 2021 19:59:23 +0530 Subject: [PATCH 3/4] Add a Note in Point no.6 in README File --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 66a572adc..dec54f0ba 100755 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ Before you begin, you should have already downloaded the Android Studio SDK and - *Note:* If you receive a Gradle sync error titled, "executing external native build for ndkBuild ...User\Project\phimpme-android\app\src\main\jni\Android.mk",Then you go to the file *"app/build.gradle"* and make those lines *"externalNativeBuild { ndkBuild { path 'src/main/jni/Android.mk' - } + }"* comment. 7. If build error still persist, try replacing ndk with ndk version 18b from [ndk-archives](https://developer.android.com/ndk/downloads/older_releases) . Once all build errors have been resolved, you should be all set to build the app and test it. From a71c0c6dfb6f13772d18e18f5e6388cd759f86c7 Mon Sep 17 00:00:00 2001 From: Varinder Kumar Maurya Date: Sun, 3 Jan 2021 12:34:01 +0530 Subject: [PATCH 4/4] Solved the Crash issue --- app/src/main/AndroidManifest.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 93a9b442c..e84d142f4 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -47,6 +47,10 @@ android:largeHeap="true" android:supportsRtl="true" android:theme="@style/AppTheme"> +