camerakit-android icon indicating copy to clipboard operation
camerakit-android copied to clipboard

android.view.InflateException-crashing my app with this {Error Inflating class com.camerakit.cameraview }

Open Sangeeth7 opened this issue 5 years ago • 3 comments

Is this a bug report?

yes

Have you read the Contributing Guidelines?

No

Environment

(Please include the following information along with any other relevant environment details.)

CameraKit Version: com.camerakit:camerakit:1.0.0-beta3.11

Android Device: mi note5 pro

Android Version: android 8.1 oreo

Steps to Reproduce

(Write your steps here:)

1.I'm following camerakit documentation and i'm trying to run in my mobile 2.its crashing as soon as app is alunched 3.

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Add screenshots!)

  • `repositories { maven { url 'https://dl.bintray.com/camerakit/camerakit-android'} } dependencies { implementation 'com.camerakit:camerakit:1.0.0-beta3.11' }

#XML implementation

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:com.wonderkiln="http://schemas.android.com/apk/res-auto" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="16dp" android:paddingLeft="16dp" android:paddingRight="16dp" android:paddingTop="16dp" tools:context=".MainActivity">

<com.camerakit.CameraKitView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cameraView"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_gravity="center|top" />

</FrameLayout>`

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

(Include your CameraKit setup and usage.)

Sangeeth7 avatar May 19 '19 20:05 Sangeeth7

Hello,

I was having the same issue.After changing the implementation to beta1, issue got resolved.

But the photo is not storing in the Internal storage.Any help?

Rishab2019 avatar Jun 07 '19 17:06 Rishab2019

Any help on this one ?

kraghu avatar Sep 12 '19 19:09 kraghu

Try creating a ViewStub and inflate the CameraKitView object programmatically in the lifecycle onViewCreated+. Worked for me.

rjsuzuki avatar Jan 23 '20 22:01 rjsuzuki