Error: with apollo-codegen package while working on AWS amplify

Viewed 400

I am following this to build an app using AWS cloud. Whenever I try to build the app using Android studio, I am getting the following error:

Unable to delete file: C:\Users\Lenovo\AndroidStudioProjects\MyApplication3\app\build\apollo-codegen\node_modules\apollo-codegen\package.json Does it have anything to do with permissions?

I have searched it on internet but nothing was found. Thank you in advance.

Android studio version: 3 API level : 28

3 Answers

Were you trying to create a Android project and a React Native project in the same folder?

node_modules and apollo-codegen are things that you should see in a React Native project. If you have been playing around with both I would recommend trying to start again in an empty folder.

Update Android studio to version 3.4.2 (or greater), it solved the problem for me.

You need to dismiss the app in the emulator or the device in order to be deleted.

Related