Probleme Android et JDK sur 5.6 et 2018 ?

Modérateurs : Administrateurs Suppléants, Community Manager

Alkyss
Messages : 28
Inscription : 29 Mai 2015 13:38

Probleme Android et JDK sur 5.6 et 2018 ?

Message par Alkyss » 13 Mars 2019 17:56

Bonjour je suis sur un projet "urgent" pour vendredi, j'ai un problème android et JDK qui fais que je peux plus exporter mon projet actuel.

Sur la version 5.6.0f3 : il me dis ça :

Unable to list target plateforms. Please make sure the android sdk path is correct. See the consol for more détails.
Et la console me dis :

Commandinvokationfailure : unable to list target platforms. Please make sure the android sdk path is correct.

Et la version Unity 2018 :

Il m'enregistre pas mon app, il me dis que je peux pas accéder au disque, alors que je lance en administrateur.

Help please :amen:

Voici les erreurs sur le 5.6 :
CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_101\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Error:Invalid command android
]
stdout[

]
exit code: 64
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
Error:Invalid command android

UnityEditor.HostView:OnGUI()
CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_101\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Error:Invalid command android
]
stdout[

]
exit code: 64
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
la version Unity 2018 :
UnauthorizedAccessException: Access to the path "I:\" is denied.
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.IO.Directory.CreateDirectory (System.String path) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
UnityEditor.Android.PostProcessor.Tasks.MoveFinalPackage.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Alkyss
Messages : 28
Inscription : 29 Mai 2015 13:38

Erreur CommandInvokationFailure: Android Asset Packaging Tool failed.

Message par Alkyss » 16 Mars 2019 10:37

Bonjour, j'ai de nouveau une erreur lors de l'export sur Unity 5.6 :
CommandInvokationFailure: Android Asset Packaging Tool failed.
C:\Android\sdk1\build-tools\25.0.1\aapt.exe package -v -f -F raw.ap_ -A raw -0 "" --ignore-assets "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"

stderr[
(skipping file '._.DS_Store' due to ANDROID_AAPT_IGNORE pattern '.*')
(skipping file '._Mixage-Saintes-VR-V1.tbe' due to ANDROID_AAPT_IGNORE pattern '.*')
Unable to add 'raw\bin\Data\sharedassets2.resource': Zip add failed (-2147483648)
ERROR: unable to process assets while packaging 'raw.ap_'
ERROR: packaging of 'raw.ap_' failed
]
stdout[
Found 10 custom asset files in raw
Configurations:
(default)

Files:
assets\bin\Data\22a10f2c0d9ac134fb837e1d53382aaa.resource
Src: () raw\bin\Data\22a10f2c0d9ac134fb837e1d53382aaa.resource
assets\bin\Data\9f560944ed99b754cae8bb566455df9d.resource
Src: () raw\bin\Data\9f560944ed99b754cae8bb566455df9d.resource
assets\bin\Data\b70a6d555df8d754f821ac71ce1f8e64.resource
Src: () raw\bin\Data\b70a6d555df8d754f821ac71ce1f8e64.resource
assets\bin\Data\sharedassets0.resource
Src: () raw\bin\Data\sharedassets0.resource
assets\bin\Data\sharedassets1.resource
Src: () raw\bin\Data\sharedassets1.resource
assets\bin\Data\sharedassets2.resource
Src: () raw\bin\Data\sharedassets2.resource
assets\MIX-JACOBINS-VR-V1.tbe
Src: () raw\MIX-JACOBINS-VR-V1.tbe
assets\MIX-JACOBINS-VR-V2-44.tbe
Src: () raw\MIX-JACOBINS-VR-V2-44.tbe
assets\MIX-JACOBINS-VR-V3-48.tbe
Src: () raw\MIX-JACOBINS-VR-V3-48.tbe
assets\OSBGENERALvideo.mov
Src: () raw\OSBGENERALvideo.mov

Resource Dirs:
Creating 'raw.ap_'
Writing all files...
'assets/MIX-JACOBINS-VR-V1.tbe' (not compressed)
'assets/MIX-JACOBINS-VR-V2-44.tbe' (not compressed)
'assets/MIX-JACOBINS-VR-V3-48.tbe' (not compressed)
'assets/OSBGENERALvideo.mov' (not compressed)
'assets/bin/Data/22a10f2c0d9ac134fb837e1d53382aaa.resource' (not compressed)
'assets/bin/Data/9f560944ed99b754cae8bb566455df9d.resource' (not compressed)
'assets/bin/Data/b70a6d555df8d754f821ac71ce1f8e64.resource' (not compressed)
'assets/bin/Data/sharedassets0.resource' (not compressed)
'assets/bin/Data/sharedassets1.resource' (not compressed)
Removing raw.ap_ due to earlier failures
]
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()
Et cette erreur :
CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_101\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Error:Invalid command android
]
stdout[

]
exit code: 64
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
:pleur4: :pleur4: :pleur4: :pleur4:
.
 ! Message de : Max
Salut,
arrête le multipost, ça nuit à la lisibilité et ça énerve les modos qui sont obligés de reprendre tes posts pour les rassembler un en seul.
Fait aussi attention à la section où tu postes, et évites de créer plusieurs sujets pour un même problème.
Merci.

Répondre

Revenir vers « Développement plateformes mobile Iphone et Android »