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

[Bug]: Build fails because of missing package attribute #3175

Closed
andrei-tofan opened this issue Nov 15, 2023 · 0 comments · Fixed by #3176
Closed

[Bug]: Build fails because of missing package attribute #3175

andrei-tofan opened this issue Nov 15, 2023 · 0 comments · Fixed by #3176

Comments

@andrei-tofan
Copy link
Contributor

Mapbox Implementation

Mapbox

Mapbox Version

default

Platform

Android

@rnmapbox/maps version

10.1.0-beta.20

Standalone component to reproduce

import React from 'react';
import {
  MapView,
  ShapeSource,
  LineLayer,
  Camera,
} from '@rnmapbox/maps';

const aLine = {
  type: 'LineString',
  coordinates: [
    [-74.00597, 40.71427],
    [-74.00697, 40.71527],
  ],
};

class BugReportExample extends React.Component {
  render() {
    return (
      <MapView style={{flex: 1}}>
        <Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
        <ShapeSource id="idStreetLayer" shape={aLine}>
          <LineLayer id="idStreetLayer" />
        </ShapeSource>
      </MapView>
    );
  }
}

Observed behavior and steps to reproduce

When running yarn run android the build fails with the following error:

> Task :app:compileProdDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings
591 actionable tasks: 5 executed, 586 up-to-date
/Users/andrei/Projects/liapp2/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:35: error: package undefined does not exist
import undefined.RNMBXPackage;
                ^
/Users/andrei/Projects/liapp2/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:149: error: cannot find symbol
      new RNMBXPackage(),
          ^
  symbol:   class RNMBXPackage
  location: class PackageList
2 errors

FAILURE: Build failed with an exception.

Expected behavior

No response

Notes / preliminary analysis

Found a similar issue here: TronNatthakorn/react-native-wheel-pick#39, the problem is that the package property is missing in AndroidManifest.xml

Additional links and references

No response

@andrei-tofan andrei-tofan changed the title [Bug]: Build android fails because of missing package attribute [Bug]: Build fails because of missing package attribute Nov 15, 2023
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

Successfully merging a pull request may close this issue.

1 participant