Android Detached SDK 29 Permissions and Gradle Errors

I test detaching the app:

$ exp detach

The app runs, then , Expo.permission don’t work, then:

android/app/build.gradle

implementation project(':expo-camera')
implementation project(':expo-permissions-interface')

Get this Error:

The module 'expo-camera' is an Android project without build variants, and cannot be built.
Please fix the module's configuration in the build.gradle file and sync the project again.

Seveal Expokit npm packages are showing the gradle error:

Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018

:expo-camera still not working

i think this is fixed by our recent permissions fix, but unsure.
cc: @tsapeta @sjchmiela

Hi, @victorwads!

Did you add these implementation project(…) yourself? If you have

implementation('host.exp.exponent:expoview:29.0.0@aar')

in your build.gradle (and you should), the camera is already included. :slightly_smiling_face:

And when it comes to

Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed at the end of 2018

it’s just a warning informing us that you’re using Gradle 3 (implementation, api are Gradle 3 interface, compile is Gradle 2). We stick to compile for backwards compatibility.

@sjchmiela, thank u.

I have implementation('host.exp.exponent:expoview:29.0.0@aar').

It seens a permission error, like @quinlanj said.

How can i fix the permission error on Android??

I don’t know what is the exact issue you’re having with permissions on Android, but you may try following instructions included in my answer here — Can't use permissions API in SDK 29 - #5 by sjchmiela, they may help you.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.