Unable to publish Android project from Smartface.io - smartface.io

I am using Publishing Wizard from Smartface to publish an Android project.
License is real, not demo
In the final step I get an error: "Error on publish" along with some hits like:
check java is 1.7 (correct!)
check path to Android SDK in Project Details (correct!)
What else should I try to make Publishing Wizard work?

This error might occur if you have both JDK1.7 and JDK1.8 than it links to JDK1.8.
Check 1.apk in the path C:\Users\<Your_User>\apktool\framework\. If it exists remove it and try again. It should work.

Related

Error compiling MAUI project - missing MonoAOTCompiler.Task

I'm creating a MAUI application targeting iOS and Android. I have been using Visual Studio 2022 for Mac version 17.3. That version doesn't really support archiving the app, so I installed version 17.4 preview 2.1. When I try to compile my app I get the following error:
Unable to find Microsoft.NET.Runtime.MonoAOTCompiler.Task
I found a post that indicated I should run the command:
dotnet add package Microsoft.NET.Runtime.MonoAOTCompiler.Task --version 7.0.0-rc.2.22472.3
When I run that command in terminal I get the error:
error: Value cannot be null. (Parameter 'version')
Everything I have found indicated that the problem should have been fixed in Preview 2.1 of Visual Studio 2022 for Mac, but it is still occurring.
Can anyone help me resolve this? I need to publish my app to the stores and can't get it to compile in release mode or create the archive because of that.
You need to add the package to your project.
First, you should right click your project name and choose the Manage Nuget packages button.
Second, you can search the package Microsoft.NET.Runtime.MonoAOTCompiler.Task and install it.
Then you successfully add the package to your project.

JDK, SDK, and Gradle errors trying to build a Unity game for Android

The question:
My environmental variable JAVA_HOME is set to the location of my manual installation of Java, so why is Unity claiming it is an invalid directory?
Supporting information:
I'm using Unity to build a game for Android phones with the intent on putting it on the Google Play Store for a client. We need to use a Google Ad plugin for managing ads in the game. However, when I put the plugin into the project I can no longer build the game.
When going to Assets > External Dependency Manager > Android Resolver > Resolve, it claims it succeeds.
But when I try Assets > External Dependency Manager > Android Resolver > Force Resolve or even building the project I get a failure and a perplexing error.
Originally I had the same problem as: Intellij Gradle terminal ERROR: JAVA_HOME is not set
When I tried the solutions there as well as following the steps at: https://javatutorial.net/set-java-home-windows-10
I've tried setting the environment variable both to the independent java installation as well as the location of Unity's JDK module and got an error that they were both invalid directories:
When I try to build I get the same error plus some additional errors:
I am unsure if the SDK error is related or not.
I already tried toggling these off and on, and even changing the installation targets to manual installations:
Possibly relevant information:
Using Unity 2019.3.0f6
InMobi Google Ads Unity Mediation Plugin Version 3.0.0
Windows 10 Pro
Java JDK 14.0.1
If Unity can't find JAVA_HOME it won't do anything, have you tried checking if you have that Environment Variable set correctly?
Check this thing.
Maybe you will need a Restart on you computer to see the changes.

Unity "Unable to find the Android SDK manager tool" (path already set) [duplicate]

This question already has an answer here:
Unable to list target platforms. Please make sure the android sdk path is correct
(1 answer)
Closed 4 years ago.
If I start my Unity Project I get this message:
Unable to find the Android SDK manager tool. Required Android packages (extra-google-m2repository) can not be installed. Android SDK path not set. Set the Android SDK property using the Unity "Edit > Preferences > External Tools" menu option on Windows or the "Unity > Preferences > External Tools" menu option on OSX. Alternatively, set the ANDROID_HOME environment variable
UnityEngine.Debug:LogError(Object)
GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, OverwriteConfirmation, Action)
GooglePlayServices.PlayServicesResolver:Resolve(Action)
GooglePlayServices.PlayServicesResolver:AutoResolve()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
But I installed the complete sdk and also set the path via Preferences. What Im doing wrong?
My sdk is in the same folder as UNITY.
just check if the android sdk folder was configured correctly in Edit->Preference->External Tools
I had almost the same issue. It all started to when i tried to install a unitypackage which includes a GooglePlayServiceResolver. And only happened in one project, while other projects don't complain about 'missing sdk'.
I had it solved by not using the GooglePlayServicesResolver included by the unitypackage.
This is what i did :
1. Remove all files that was installed by the package, including the resolver.
2. Download and install latest resolver.
3. Re-import the package, but this time without the resolver since i already had the latest.
My resolver ran automatically and resolved dependencies without complaining about missing Android SDK anymore.

Android L parseSdkContent failed Could not initialize class android.graphics.Typeface

Hello recently i updated to Android L sdk. Now whenever i open new project dialog i'm getting this error. parseSdkContent failed
Could not initialize class android.graphics.Typeface
I have seen many questions already answered on stackoverflow but the solutions mentioned didn't work for me.
I have tried deleting the .android in folder C: drive and restarted eclipse.
I have also tried re-installing the new version of Android ADT plugin through Help->Install New Software in Eclipse as mentioned at http:\developer.android.com/sdk/installing/installing-adt.html
Whenever i check for new updates in Eclipse it shows "No New Updates Found".
But still i'm getting the same error.
The update issue is probably related to your parseSdkContent issue, since "the update mechanism in the ADT bundle is broken" (Comment 66). This means that Eclipse have not updated to be compatible with the new Android
I had the same problem when I wanted to update my Eclipse to prepare it for Android L, so I downloaded the new adt zip, then came accross the other error, and after deleting my .android folder, I am no longer having issues.
The new bundle can be found on the android developer site, and here is the link: Android developer site
The issue was fixed in the API 21 rendering library. As a workaround, you can use the rendering library from API 20 in the meanwhile.
Download the SDK platform for API 20 (4.4W)
Navigate to your sdk folder (should be like
D:\adt-bundle-windows-x86_64-20140321\sdk)
Go to platforms folder -> android-21 folder -> data folder
Rename layoutlib.jar (for backup purpose)
Copy the same file from your android-20 folder to this folder
Restart Eclipse
https://code.google.com/p/android/issues/detail?id=77726#c15

Invalid or corrupt jarfile android.jar issue

I am trying to build and run an android project using the phonegap framework.
I have configured the IDE and followed the steps described in an official tutorial (see link above).
The problem is that I never had a chance to build the project since it contains errors. The major one is (see screenshots):
Archive for required library: 'C:/Program Files/Android/android-sdk/platforms/android-8/android.jar' in project 'xxx' cannot be read or is not a valid ZIP file
Also, I have tried to manually run the aforementioned android.jar but got the same error:
The problem keeps reproducing through several SDK versions: r14, r15.
BTW, I experience no troubles building a project using other android versions, e.g., 2.3.
Would someone help me out? Thanks!
Use the Android package manager to remove and then re-download the Android 2.2 SDK as something is corrupt with that package.