natjs / nat

A powerful kit for adding native functionalities to your weex app.
http://natjs.com
282 stars 25 forks source link

Getting Camera Busy Issue in Android 7.0 #31

Closed sushilparajuli closed 6 years ago

sushilparajuli commented 6 years ago

camera busy issue Following is code, I have implemente in the code as per nat-explorer example `Nat.camera.captureVideo({}, (err, ret) => { if (err) { Nat.toast('[ERROR] ' + JSON.stringify(err)) return }

            Nat.toast(JSON.stringify(ret, null, 2))
            this.path = ret.path
        })`

I tried clearing cache too much getting Camera Busy issue at all time

Environment: -weex v1.2.9

Nat Js updated version as follow { "type": "maven", "groupId": "com.instapp.nat", "name": "weex-plugin-camera", "version": "1.0.2", "dependency": "com.instapp.nat:weex-plugin-camera:1.0.2" }

sushilparajuli commented 6 years ago

I have update android-> build.gradle to make this working subprojects { ext { compileSdkVersion=26 buildToolsVersion="26.0.0" minSdkVersion=16 appMinSdkVersion=16 targetSdkVersion=23 // this one have to downgrade supportLibVersion="26.1.0" fastjsonLibVersion="1.1.46.android" } }