Skip to content

Android compile issue on latest #98

@venux92

Description

@venux92

Hi,

I'm getting an error when trying to compile on Android (iOS is fine)

android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:39: error: package undefined does not exist
import undefined.AesPackage;

android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:119: error: cannot find symbol
      new AesPackage(),
          ^
  symbol:   class AesPackage
  location: class PackageList

The following is generated in PackageList.java

Image

To fix the issue I need to add package="com.tectiv3.aes" to to node_modules/react-native-aes-crypto/android/src/main/AndroidManifest.xml which is definitely not ideal.

from

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

to

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.tectiv3.aes">
</manifest>

This seemed to be linked to this react-native-community/discussions-and-proposals#671

which was introduced on this commit 6b3ecd8

Can we keep backward compatibility 🙏🏽

I'm using "react-native": "0.68.5"

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions