React Native build signed bundle: Error "Cause: argument mismatch" - android

I am trying to build my app in react native via Build => Generate signed bundle /APK
The standard gradle sync works perfectly but when it comes to build the AAB file, I get this error without any more specification:
This happened in particular after upgrading Android Studio to the new version "Bumblebee".
I use gradle version 7.4 because 6.9 is not possible due to some plugins complaining about it, they require 7.2 latest. I read that this is a solution for this problem but it does not work for me.
I am completely helpless here as I cannot narrow down the error. So maybe someone has a similar issue with react native and can help out.

Related

An alternative way for building a Unity project for Android

For the last few days, I have been trying to build a testing project for android using the default build method but I just keep recieving errors and not knowing how to fix them.
Short Error and Full Error Decscription. Also I am using Unity 5.6.7f1 with Admob plugins (And yes because my pc is shit so I use this version)
So I want to ask is there an alternative way for building an android app with Unity. I have heard about exporting the project to gradle and building it using Android Studio. But I don't know how.
If you know an alternative way or how to build the project with Android Studio or how to fix the error PLEASE ANSWER. I am having a nightmare with building this stupid test project to Android
The problem is your jdk(1.8.0_311) is too new to support legacy build command from Unity (5.6.7f1).
Two method to solve:
Install older jdk
if you don't know which version you should use. You may use the default jdk with Unity installer in preferences. (I'm not sure 5.6.7f1 is supported).
Export android project
You can export android project by check the "Export Project". Then use android studio to build apk.

Phonegap SyntaxError:Unexpected Token

So I'm running the phonegap build command
phonegap build android
But I'm getting a bunch of Unexpected Token.
I haven't done anything to any of those files so I'm wondering why it's throwing those errors.
You can use build.phonegap.com to build once to verify that there is no problem with the hybrid code. If you can build it there then that indicates there is some issue with the setup like android sdk/version etc or plugins that are installed.

Android dexguard: Multiple problems have occured?

I am getting the following error when trying to install DEXguard onto a simple application within Eclipse:
Errors occurred during the build.
Errors running builder 'Android Optimizer and Obfuscator (DexGuard)' on project 'test'.
com/android/sdklib/util/GrabProcessOutput$IProcessOutput
This error occurs when I try to run the app.
Also all of the other projects in my Ecipse have the red exclaimation mark error, what is the issue here?
EDIT: I removed the red exclaimation mark error but removing Android dpendencies from the build path, however the original error is still persisting when I attempt to run the project.
Such an error is a sign that you're combining the DexGuard plugin with an incompatible version of the Android plugin in Eclipse. You should check the compatible version numbers that are documented in the DexGuard manual. Upgrading both plugins to the latest versions should work.

Cannot generate cloud backend in android studio

I am trying to generate a cloud backend using the "google cloud tool" in android studio, however it gives the following errors:
Failed to execute goal com.google.appengine:appengine-maven-plugin:1.8.0:endpoints_get_discovery_doc (default) on project MyApplication-AppEngine: Execution default of goal com.google.appengine:appengine-maven-plugin:1.8.0:endpoints_get_discovery_doc failed: A required class was missing while executing com.google.appengine:appengine-maven-plugin:1.8.0:endpoints_get_discovery_doc: Lorg/sonatype/aether/RepositorySystem;
I have installed maven 3.1.1 and android studio is version 0.3.1 (both of which is the newest version as of october 24th)
I seems that the error has been fixed in the appengine-maven-plugin version 1.8.3, but i simply cannot seem to force android studio to use that version.
How do I setup maven/android studio/google app engine, so that it can autogenerate the backend?
Thanks in advance!
PS: i have google this for 2 days now, and have gotten nowhere
So the templates in the cloud tools plugin use 1.8.0, these are not changeable. The problem as you have noticed is an incompatibility with Maven 3.1.1. If it is possible, you might try using maven 3.0.4/3.0.5 instead of 3.1.1 which are known to work with the plugin. The template is undergoing changes right now to address a couple of things (including the issue you are having), it will be updated in the future.

Builds of Android package fail with 'apply' message after updating SDK - how to fix?

I recently upgraded the Android SDK on our build machine, and now Android builds using Ant fail with the obscure message:
The <apply> type doesn't support the nested "path" element.
Our build.xml is the standard one generated by Android tools, and we automatically run
android update project -p .
before Ant runs the debug task.
The error message appears during the -dex phase of the build process.
Since this buildfile is using one of the standard Android templates, I'm not sure what's causing this change in behavior. Any ideas?
Never mind, I figured it out. Seems that Android version 8 or higher now require you to have ant 1.8 or higher (I was still using 1.6.5). The fix was simply to upgrade my ant installation to the latest version.

Categories

Resources