Quantcast
Channel: Questions in topic: "android sdk"
Viewing all 455 articles
Browse latest View live

I am having trouble building the project for android (i can't build)

$
0
0
![CommandInvokationFailure: Failed to re-package resources. C:\Game Development\Android Sdk\build-tools\27.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Game Development/Android Sdk\platforms\android-27\android.jar" -F bin/resources.ap_ stderr[ AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'theme' with value '@style/UnityThemeSelector'). AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/app_icon'). AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'label' with value '@string/app_name'). AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'banner' with value '@drawable/app_banner'). AndroidManifest.xml:5: error: Error: No resource found that matches the given name (at 'label' with value '@string/app_name'). ] stdout[ Configurations: (default) Files: AndroidManifest.xml Src: () AndroidManifest.xml Resource Dirs: Including resources from package: C:\Game Development\Android Sdk\platforms\android-27\android.jar applyFileOverlay for drawable applyFileOverlay for layout applyFileOverlay for anim applyFileOverlay for animator applyFileOverlay for interpolator applyFileOverlay for transition applyFileOverlay for xml applyFileOverlay for raw applyFileOverlay for color applyFileOverlay for menu applyFileOverlay for font applyFileOverlay for mipmap ] exit code: 1 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retriesOnFailure) UnityEditor.HostView:OnGUI()][1] [1]: /storage/temp/118451-2.png

UnityException: Failed to update Android SDK.

$
0
0
Hi everyone, I am trying to build android app using unity 2018.3.6f1 and Android Studio V3.3.2 . However there is an error on Andorid SDK update. Can somebody help me? please help! Android SDK Info: ![alt text][1] Error Log: Detected outdated SDK Build Tools version 28.0.0 when the min version is 28.0.3 UnityException: Failed to update Android SDK. at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) [0x000c7] in <7cbc688ae1af4105929402a46c6a4414>:0 at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x002ac] in <7cbc688ae1af4105929402a46c6a4414>:0 at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00074] in <7cbc688ae1af4105929402a46c6a4414>:0 at UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTarget target) [0x0007a] in <7cbc688ae1af4105929402a46c6a4414>:0 at UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTarget target) [0x00001] in <7cbc688ae1af4105929402a46c6a4414>:0 at UnityEditor.PostprocessBuildPlayer.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target) [0x00019] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:106 [1]: /storage/temp/134248-unity.png

Unity not finding android sdk

$
0
0
Hi, My unity i showing a problem to find the android SDK, I followed this [GUIDE](https://docs.unity3d.com/Manual/android-sdksetup.html) on how to install the SDK using the command line tool, installed the platform and the build tools for the SDK 26, 27 and 28 and the platform tools. But when i try to select the folder __ _ c:"myFolder"\platforms\"allSdkVersions" _ __, all of then show the same error message, saying that no SDK could be found. Any solution? Thanks.

Unity Android game works on new Android versions but not in an old version?

$
0
0
So I finally published my app on the Google Play store. So far I've had it work on two modern android phones. But I made my friend try it, who has an old phone that only runs Android 5.1.1. The game wouldn't even launch on his phone. Yet in the Unity Build Settings "Other Settings", it says that the minimum API level is Android 4.1, which makes me assume that it should work on Android 5. I have no idea what I could do to get to the bottom of this. What could I possibly do?

Error Building Play Android > Unity 3d v4.6.9

$
0
0
Hi ! I have this error ( never before -__- ): this error occurs when he tried to create an apk file ---------------------------------------------------- Error building Player: CommandInvokationFailure: Failed to build apk. See the Console for details. C:/Program Files (x86)/Java/jdk1.7.0_80\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="C:/ProgramData/Android sdk/android-sdk-windows\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" - stderr[ Error: java.io.IOException: Invalid keystore format ] stdout[ ] ---------------------------------------------------- why i receive this error ??? i have installed this sdk version = android-sdk_r24-windows.zip and this java version = jdk-7u80-windows-i586.exe

When update android project from 2017 to 2018, I can't build it anymore

$
0
0
I was working on my project and needed a plugin that was only compatible with 2018 or above. So I updated my project version to the 2018. After that I wasn't able to build anymore and it's giving me an error about AAPT2. I tried to update eveything that I had installed on SDK manager except for build tools I don't have installed the 29, because that will give me an different error if I install it. Any help is appreciated, thanks.
Here is the log file : [https://pastebin.com/B953mxfx][1]
Here is the issue on play services github because it seem related: [https://github.com/playgameservices/play-games-plugin-for-unity/issues/2515][2] [1]: https://pastebin.com/B953mxfx [2]: https://github.com/playgameservices/play-games-plugin-for-unity/issues/2515

Unity Fails to Build to Android Device - INSTALL_PARSE_FAILED_NOT_APK: Failed to parse. How to solve this?

$
0
0
- Running Unity 2018.3.10f1 - AR Application, Running Vuforia 8.0.10 - Running Google Firebase Auth / Storage for download of Asset Bundles per User ---------- Until very recently, this app has functioned fine. I have dozens of previous successful APK/OBB duos. Now, since a handful of updates and bug fixes (Firebase to 5.6.0, etc), my export functionality has stalled. Upon an attempt to actually side-load a new APK/OBB onto a device for further testing, I get a Parse Error: ---------- CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details. ---------- Further: C:\Users\[USER]\AppData\Local\Android\sdk\platform-tools\adb.exe -s "HT7530206306" install -r "C:\Users\[USER]\[FILEPATH]\AR View0.8.0.apk" stderr[ adb: failed to install C:\Users\USER\[FILEPATH]\AR View0.8.0.apk: Failure [**INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl1540219450.tmp/base.apk**] ---------- stdout [Performing Streamed Install] exit code: 1 ---------- At this point I'm lost on what to do. I have: - Uninstalled/Reinstalled Android Studio - Updated Unity to Current Version - Tried this in a BLANK Unity project and gotten the same error - Made sure that my device (I think?) no longer has any versions of the app present on it. - Created a new signing certificate and tried both new and old.. What else IS there? Thanks for your help!

Where can I find programmatic access to Unity's Preferences?

$
0
0
I was wondering how I can get access to the values specified in Unity's Preferences Window? Specifically I'm interested in the Android SDK folder as I want to add a PostProcessBuild step to run adb.

Android Set up problem

$
0
0
Hello , i have been trying to set up a project for android and although i have installed the SDK and the JDK i have a ton of errors in the console for example : MissingMethodException: void UnityEditor.PlatformIconKind..ctor(int,string,UnityEditor.BuildTargetGroup,string[]) Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.Android.AndroidPlatformIconKind' threw an exception. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.Android.AndroidPlatformIconProvider' threw an exception. UnityEditor.Android.TargetExtension.OnLoad () (at <88edc2c3d52c431ca64da37d556b038f>:0) UnityEditor.Modules.ModuleManager.InitializePlatformSupportModules () (at C:/buildslave/unity/build/Editor/Mono/Modules/ModuleManager.cs:242) can you help plz ? ![alt text][1] [1]: /storage/temp/136363-1.jpg

Unity wants Android SDK path even after it was set.

$
0
0
Hello, I want to use the unity Remote 5 tool, but even after I set the path for the SDK it still prompts me with a warning to set up my path for it to work. Tried restarting Unity and the app multiple times, also I reinstalled SDK multiple times and still nothing.

CommandInvokationFailure: Gradle build failed when build android apk

$
0
0
Hei, anyone can help me because i'm a newbie on unity especially on building android app with unity. I have done with my code and i want to produce it into .apk file but i get some errors, like this : And i have surfing for a day and do some of unity forums comment to fixed this error but it doesn't work at all. Please help me :( I use Unity 2017.4.25f1 64bit (LTS Version) and Jdk 8u161 with SDK Manager version on android 29.0.0 > CommandInvokationFailure: Gradle build failed. > C:/ProgramFiles/Java/jdk1.8.0_161\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease" ----- > stderr[> FAILURE: Build failed with an> exception.>> * What went wrong: A problem occurred configuring root project 'gradleOut'.>> Failed to find Build Tools revision 29.0.0>> * Try: Run with --stacktrace option to get the stack trace. Run with --info> or --debug option to get more log> output. Run with --scan to get full> insights. ---> * Get more help at https://help.gradle.org>> BUILD FAILED in 3s ] stdout[>> ] exit code: 1> UnityEditor.Android.Command.WaitForProgramToRun> (UnityEditor.Utils.Program p,> UnityEditor.Android.WaitingForProcessToExit> waitingForProcessToExit, System.String> errorMsg)> UnityEditor.Android.Command.Run> (System.Diagnostics.ProcessStartInfo> psi,> UnityEditor.Android.WaitingForProcessToExit> waitingForProcessToExit, System.String> errorMsg)> UnityEditor.Android.AndroidJavaTools.RunJava> (System.String args, System.String> workingdir, System.Action`1 progress,> System.String error)> UnityEditor.Android.GradleWrapper.Run> (System.String workingdir,> System.String task, System.Action`1> progress) Rethrow as> GradleInvokationException: Gradle> build failed> UnityEditor.Android.GradleWrapper.Run> (System.String workingdir,> System.String task, System.Action`1> progress)> UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute> (UnityEditor.Android.PostProcessor.PostProcessorContext> context)> UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks> (UnityEditor.Android.PostProcessor.PostProcessorContext> context)> UnityEngine.GUIUtility:ProcessEvent(Int32,> IntPtr)

How come when I generate a signed APK it produces out a JKS file?

$
0
0
I'm using the latest version of Android Studio and am looking at publishing an app on the Playstore. Unfortunately when I generate a signed APK it only only gives me the open to produce a JKS file. All the tutorials I've seen makes it look like you put an APK and that's what you get out, but those are using older versions of Android studio. Do I need to put the JKS file through something else, download an older version of Android Studio or am I missing a step? I'm really new at this and I'd appreciate any help I can get. Thanks!

"Set-up Android SDK path to make Android remote work" 2019.1.1

$
0
0
Hi I have followed the instructions on the unity manual for running my project with unity remote 5 with Unity 2019.1.1. I seem to have followed all of the steps, but when I click play I get this error:![alt text][1] My understanding is that android SDK, NDK, and JDK are automatically setting being set up as I selected. ![alt text][2] [1]: /storage/temp/137567-capture1.jpg [2]: /storage/temp/137568-capture2.jpg anyone have an explanation?

how to fix upside down game view

$
0
0
I am making a VR game for google cardboard and when i test it on unity the view normal but when i import it on my phone the game camera is upside down and i have my orientation left

Unity cannot find compatible Android device?

$
0
0
When I try to build Unity to my Android phone it says it cannot find any compatible devices. I have the SDK and JDK 8.0 installed. I have set the path to the SDK in Unity. USB debugging is enabled. I have tried restarting unity and my phone but it still doesn't work. I am using Android 7.0. I have the 7.0 and 8.0 SDK platforms installed as well as Google USB drivers. I'm new to all this so maybe I'm missing something.

unity 2018, 2019 SDK tools - does it contains Android Support Library ?

$
0
0
When building with latest Facebook SDK and latest Firebase SDK (using latest Gooel Jar Resolver) build fails when used multi dex enabled = true in your custom Gradle template. Facebook SDK breaks when building successfully on Android - failed to find Android Support

Android update required, but hangs when selecting update.

$
0
0
So I got a fresh install of Unity 2019 this morning, with all support packages, but when trying to build an android apk it says I need the updated 26 version, apparently Unity installed with 25. I click update, but it just hangs Tried twice, been like 20 minutes now. What should I do?

Is there a way to setup Android environment and Android Sdk without unity hub!?

$
0
0
I running unity 2019.1.0f2 and the hub doesn't work with me, it just stops downloading after awhile with no error message, so I just downloaded unity directly from the site, now I'm stuck with the sdk and Android build, any solutions!?

Unable to install additional SDK platform

$
0
0
Guys I'm struggling here with unity trying to build and run, I'm using unity 2019.1.4f1 which has sdk installed with unity, when I try to build and run , a pop up opens saying "Required API level 26, and when I choose Update it simply says " unable to install additional SDK please run the sdk manager manually", any solutions !?

How to increase number of supported devices when publishing to the google play store

$
0
0
There are a large number of unsupported devices, some that I have tested and can run the app just fine. I want to change whatever it is that is making Google's console / the play store think the game is not compatible with these devices. I have tried looking through the Manifest, and everything seems fine. I am not sure what else to check, or change. I can't even find what is consistently causing a problem, I have spent a lot of time just comparing the supported and unsupported phones to try and diagnose why there are so many unsupported devices. Thanks in advance.
Viewing all 455 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>