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

AndroidManifest.xml's manifest tag package attribute is deprecated. #1188

Closed
chrishpowell opened this issue Nov 18, 2022 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@chrishpowell
Copy link

The following occurs during build/package process:

[Fri Nov 18 12:58:12 EET 2022][FINE] [SUB] Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
[Fri Nov 18 12:58:12 EET 2022][FINE] [SUB] Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace

Expected Behavior

The package entry in AndroidManifest manifest tag needs to move to an android{} definition in the build.gradle file so as the objection above no longer occurs.

Current Behavior

The package name entry required in the AndroidManifest manifest tag causes the objection above to occur.

Context

This is not a major issue at the moment but may have implications in the near future.

@chrishpowell chrishpowell added the enhancement New feature or request label Nov 18, 2022
@javateer
Copy link

javateer commented Dec 1, 2022

I started to see this after upgrading GRAALVM for my build environment.

But then I deleted ~/.gluon/substrate/Android folder and let it recreate itself during the next build.

Also, I updated my src/android/AndroidManifest.xml file with attribute:

<activity android:name='com.gluonhq.helloandroid.MainActivity' android:exported="true" android:configChanges="orientation|keyboardHidden" android:screenOrientation="portrait">

Then this error message went away. If there's something else / more I did to clear it up, I'm not aware of it.

@jperedadnr
Copy link
Contributor

fixed with #1251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants