Skip to content
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

Package is giving issue while creating android builds #306

Closed
FlowerbeanAnsh opened this issue Dec 9, 2024 · 3 comments
Closed

Package is giving issue while creating android builds #306

FlowerbeanAnsh opened this issue Dec 9, 2024 · 3 comments
Assignees

Comments

@FlowerbeanAnsh
Copy link

After recent publish the package is giving below mentioned error while creating android build, earlier it was totally working fine.
Using react-native v0.64

error: package undefined does not exist
import undefined.JailMonkeyPackage;
^

error: cannot find symbol
new JailMonkeyPackage(),
^
symbol: class JailMonkeyPackage
location: class PackageList
2 errors

FAILURE: Build failed with an exception.

@kmye
Copy link
Collaborator

kmye commented Dec 11, 2024

Hi @FlowerbeanAnsh

Thanks for raising this issue.

Do you have a minimal repo setup to replicate this issue and the steps to reproduce this?

@kmye kmye self-assigned this Dec 11, 2024
@ImKifu
Copy link

ImKifu commented Dec 12, 2024

The error indicates that there is an issue with the AndroidManifest.xml file in the jail-monkey module. Specifically, it mentions that no package name was found.

To resolve this issue, you need to ensure that the AndroidManifest.xml file in the jail-monkey module has a valid package name.

  1. Open the AndroidManifest.xml file located at node_modules/jail-monkey/android/src/main/AndroidManifest.xml.
  2. Ensure that the package attribute is correctly defined in the tag. It should look something like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.gantix.JailMonkey">
</manifest>

Save the file and try to clean and rebuild your project again:

cd android
./gradlew clean
cd ..
npx react-native run-android

or u can use older version such as 2.8.0
package.json:
"jail-monkey": "2.8.0",

@kmye
Copy link
Collaborator

kmye commented Dec 12, 2024

Hello @FlowerbeanAnsh,

Ever since PR#232 we no longer support AGP < 7.

It is recommended to upgrade your react native and packages to the latest version as older versions of react native dependencies may contain security vulnerability

@kmye kmye closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants