Android Detached SDK 29 Permissions and Gradle Errors


#1

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.

#2

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


#3

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


#4

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.


#5

@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??


#6

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, they may help you.


closed #7

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