Bonjour,
J'ai besoin de votre aide concernant mon projet Unity, j'avais un problème de gradle.
J'ai remplacé le gradle par défaut de Unity par la version v6.7.1 Télécharger depuis le site https://gradle.org/releases/
Par conséquence je n'ai plus de problème mais à la fin de mon build le fichier apk qu'il crée est supprimé et la fenêtre du projet est fermée.
Mon gradle est configuré comme suite :
mon player est configuré comme suite veuillez trouver ci-joint les images de ma configuration :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73 allprojects { buildscript { repositories {**ARTIFACTORYREPOSITORY** google() jcenter() } dependencies { // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version classpath 'com.android.tools.build:gradle:4.2.0' **BUILD_SCRIPT_DEPS** } } repositories {**ARTIFACTORYREPOSITORY** google() jcenter() flatDir { dirs "${project(':unityLibrary').projectDir}/libs" } } } task clean(type: Delete) { delete rootProject.buildDir }<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" xmlns:tools="http://schemas.android.com/tools"> <uses-permission android:name="android.permission.CAMERA" /> <!-- Read permission required to load vocab file --> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <!-- This tag indicates that this application requires ARCore. This results in the application only being visible in the Google Play Store on devices that support ARCore. --> <uses-feature android:name="android.hardware.camera.ar" android:required="false"/> <application> <!-- This activity is critical for installing ARCore when it is not already present. --> <activity android:name="com.google.ar.core.InstallActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:excludeFromRecents="true" android:exported="false" android:launchMode="singleTop" /> <meta-data android:name="com.google.ar.core" android:value="optional" /> </application> <queries> <package android:name="com.google.ar.core" /> </queries> </manifest>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
123 Mon manifeste est configuré comme :
Je n'ai vois aucune erreur depuis ma console mais quand j'ouvre le fichier log j'ai : Unhandled exception: Protocol error - failed to read magic number (error -2147483644, transferred 0/4)
Et la configuration de mon player est :
Merci de votre aide.
Partager