New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple compile errors in - expo-permissions\android\src\main\java\expo\modules\permissions\PermissionsService.kt #8101
Comments
Hi @vladi-hub! It looks like something is up with your react native package. Could you create a small example repo with this issue, that way we can investigate it a bit more. If not, I've seen a similar report here, maybe it helps. If not, you can try out one of the suggestions over here. Hope it helps! |
yep I check those previous issues, not the same .... here is some more info: c:\MyProjects\React\MobileReact>react-native -version |
thanks for the repository! I tried it out but I could still not reproduce the compile issue. Tried it with both importing Could you add tensorflow to the repro, maybe something weird is happening there that affects the |
will do in a moment.....try gradlew assemblyDebug......it breaks when preparing and installing apk to avd
Sent from Yahoo Mail on Android
On Thu, Apr 30, 2020 at 6:19 PM, Cedric van Putten<notifications@github.com> wrote:
thanks for the repository! I tried it out but I could still not reproduce the compile issue. Tried it with both importing react-native-unimodules and expo-permissions (after installing it with expo install expo-permissions). Had to add a custom debug keystore and fix gradlew's executing permissions, but those are probably my system only and not related.
Could you add tensorflow to the repro, maybe something weird is happening there that affects the expo-permissions/unimodules?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@tensorflow/tfjs-react-native@0.2.3 npm tfjs -v if you can't reproduce with those versions I will try to upload it, but its too much hassle |
so are you able to actually build the apk ? |
Same problem here. You can find stack trace here: I am using Expo bare workflow and latest version of unimodules and expo-permissions. I've already tried to reinstall node_modules packages and run 'gradle clean'. Nothing helps, I am stuck. I must admit that I am new to react-native and could have missed something. |
I encountered a similar issue with |
In my case... I solved the error :expo-permissions:compileDebugKotlin FAILED this way:
|
hi! we need a reproducible example to help with this. please create a new issue and provide an example that we can run to demonstrate the issue. this is likely a bug in your own code and trying to provide a minimal reproducible example will help you to locate that bug! if you can reproduce it then it'll help us to investigate! more guidance on how to do this if you need it: https://stackoverflow.com/help/minimal-reproducible-example |
How I fixed it:
|
Downgrading "react-native-unimodules" to "0.12.0" worked for me, |
if log includes "Unresolved reference: R" update compileSdkVersion to 30 |
This was the unique solution that worked for me, thanks! |
If you've been having this issue since roughly the start of November, see facebook/react-native#35210 |
🐛 Bug Report
Compile error from expo-permissions, rebuild the dependencies and modules multiple time from scratch, but its the same. Code is a bit messy.....
FAILURE: Build failed with an exception.
Environment
Expo CLI 3.20.0 environment info:
System:
OS: Windows 10 10.0.18363
Binaries:
Node: 12.16.2 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Users\vvladislav\AppData\Roaming\npm\yarn.CMD
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6392135
Android App - trying to integrate tensorflow with react
Steps to Reproduce
Just create empty react native app and paste the code.
import React, { Component, useState, useEffect } from 'react';
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
import { Camera } from 'expo-camera';
import {Permissions} from 'react-native-unimodules';
import * as blazeface from '@tensorflow-models/blazeface';
import * as tf from '@tensorflow/tfjs';
import '@tensorflow/tfjs-react-native';
import 'expo-asset';
async function main() {
console.debug(isTfReady);
const model = await blazeface.load();
console.debug(model);
// Pass in an image or video to the model. The model returns an array of
// bounding boxes, probabilities, and landmarks, one for each detected face.
const returnTensors = false; // Pass in
true
to get tensors back, rather than values.const predictions = await model.estimateFaces(document.querySelector("img"), returnTensors);
if (predictions.length > 0) {
/*
predictions
is an array of objects describing each detected face, for example:}
}
export default class App extends Component {
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF'
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5
}
});
Expected Behavior
To have at least runtime error, not compile :)
Actual Behavior
Compile time error
Reproducible Demo
Just paste the code in new react native App
The text was updated successfully, but these errors were encountered: