Skip to content

Instant App: error when duplicate app folder, open in Android Studio and automatically build #3

@darthgween

Description

@darthgween

I followed all the AppClip guide and it works fine.
Now I'm trying to develop an Instant App as well, let me explain all the steps to reproduce the error:

  • I tried with the latest sdk and node version as well as with the versions suggested by the guide
  • I followed all the steps then I created a new react native project as the guide suggest
  • Then I copied the app folder located into the generated android folder and I rename it as appInstant
  • I opened the android folder into Android Studio (with all the required setup) and when it starts to build (the build phase starts automatically) I got this error:

Build file '/My/Path/To/RNProject/TestAndroidV3/android/appInstant/build.gradle' line: 3

A problem occurred evaluating project ':appInstant'.

Failed to apply plugin 'com.facebook.react'.
The value for property 'languageVersion' is final and cannot be changed any further.

If I try it without creating the appInstant folder it works properly on simulator
Idk if it may be useful but with react-native doctors everything is fine.

This is the build --scan: https://scans.gradle.com/s/q37z3zw5dwkko

Any suggestions to how to fix this and let it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions