Open hoseinhajipour opened 4 years ago
سلام چه اروری میده؟
حل شد گزینه google play resolver رو برداشتم و فایل gradle رو دستی تنظیم کردم
و توی Android Studio خروجی گرفتم که دیگه درست شد
سلام چه اروری میده؟
Note: E:\Hajipour 2020\unity3d\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Note: Recompile with -Xlint:deprecation for details.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
FAILURE: Build failed with an exception.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Execution failed for task ':launcher:preReleaseBuild'.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Could not find ir.tapsell.plus:tapsell-plus-sdk-unity:1.1.1.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Searched in the following locations:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
- https://dl.google.com/dl/android/maven2/ir/tapsell/plus/tapsell-plus-sdk-unity/1.1.1/tapsell-plus-sdk-unity-1.1.1.pom
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
- https://dl.google.com/dl/android/maven2/ir/tapsell/plus/tapsell-plus-sdk-unity/1.1.1/tapsell-plus-sdk-unity-1.1.1.jar
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
- https://jcenter.bintray.com/ir/tapsell/plus/tapsell-plus-sdk-unity/1.1.1/tapsell-plus-sdk-unity-1.1.1.pom
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
- https://jcenter.bintray.com/ir/tapsell/plus/tapsell-plus-sdk-unity/1.1.1/tapsell-plus-sdk-unity-1.1.1.jar
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
- file:/E:/Hajipour 2020//unity3d/Hero/Temp/gradleOut/unityLibrary/libs/tapsell-plus-sdk-unity-1.1.1.jar
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
- file:/E:/Hajipour 2020//unity3d/Hero/Temp/gradleOut/unityLibrary/libs/tapsell-plus-sdk-unity.jar
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Required by:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
project :launcher > project :unityLibrary
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
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.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
BUILD FAILED in 34s
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :launcher:preBuild UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:preBuild UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:preReleaseBuild UP-TO-DATE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :launcher:prepareLintJar
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:checkReleaseManifest
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:processReleaseManifest
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:compileReleaseAidl NO-SOURCE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:generateReleaseBuildConfig
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:generateReleaseResValues
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:generateReleaseResources
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:packageReleaseResources
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:generateReleaseRFile
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:prepareLintJar
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:generateReleaseSources
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:javaPreCompileRelease
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:compileReleaseJavaWithJavac
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:bundleLibCompileRelease
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:prepareLintJarForPublish
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:mergeReleaseShaders
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:compileReleaseShaders
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:generateReleaseAssets
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :launcher:preReleaseBuild FAILED
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Task :unityLibrary:packageReleaseAssets
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Use '--warning-mode all' to show the individual deprecation warnings.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
16 actionable tasks: 16 executed
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
CommandInvokationFailure: Gradle build failed. C:/Program Files/Unity/Hub/Editor/2020.1.0a21/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2020.1.0a21\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[ Note: E:\Hajipour 2020\unity3d\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':launcher:preReleaseBuild'.
Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'. Could not find ir.tapsell.plus:tapsell-plus-sdk-unity:1.1.1. Searched in the following locations:
- https://dl.google.com/dl/android/maven2/ir/tapsell/plus/tapsell-plus-sdk-unity/1.1.1/tapsell-plus-sdk-unity-1.1.1.pom
- https://dl.google.com/dl/android/maven2/ir/tapsell/plus/tapsell-plus-sdk-unity/1.1.1/tapsell-plus-sdk-unity-1.1.1.jar
- https://jcenter.bintray.com/ir/tapsell/plus/tapsell-plus-sdk-unity/1.1.1/tapsell-plus-sdk-unity-1.1.1.pom
- https://jcenter.bintray.com/ir/tapsell/plus/tapsell-plus-sdk-unity/1.1.1/tapsell-plus-sdk-unity-1.1.1.jar
- file:/E:/Hajipour 2020//unity3d/Hero/Temp/gradleOut/unityLibrary/libs/tapsell-plus-sdk-unity-1.1.1.jar
- file:/E:/Hajipour 2020//unity3d/Hero/Temp/gradleOut/unityLibrary/libs/tapsell-plus-sdk-unity.jar Required by: project :launcher > project :unityLibrary
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 34s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 ] stdout[ Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Task :launcher:preBuild UP-TO-DATE Task :unityLibrary:preBuild UP-TO-DATE Task :unityLibrary:preReleaseBuild UP-TO-DATE Task :launcher:prepareLintJar Task :unityLibrary:checkReleaseManifest Task :unityLibrary:processReleaseManifest Task :unityLibrary:compileReleaseAidl NO-SOURCE Task :unityLibrary:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:generateReleaseBuildConfig Task :unityLibrary:generateReleaseResValues Task :unityLibrary:generateReleaseResources Task :unityLibrary:packageReleaseResources Task :unityLibrary:generateReleaseRFile Task :unityLibrary:prepareLintJar Task :unityLibrary:generateReleaseSources Task :unityLibrary:javaPreCompileRelease
Task :unityLibrary:compileReleaseJavaWithJavac
Task :unityLibrary:bundleLibCompileRelease Task :unityLibrary:prepareLintJarForPublish Task :unityLibrary:mergeReleaseShaders Task :unityLibrary:compileReleaseShaders Task :unityLibrary:generateReleaseAssets Task :launcher:preReleaseBuild FAILED Task :unityLibrary:packageReleaseAssets
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
16 actionable tasks: 16 executed
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at 1[T] progress, System.String error) (at <d7de7bc2b6694e0a86cd0b4cc06d902c>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action
1[T] progress) (at
Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 61 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0027c] in <4e49c0b908504769a79a7b9e3faf0087>:0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <4e49c0b908504769a79a7b9e3faf0087>:0 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
این روش خوبی نیست سعی میکنم مشکل رو حل کنم
بنده همین مشکل را با یونیتی 2019 دارم
سلام روی نسخه 2020 یونیتی امکان خروجی گرفتن نیست خطا gradle میده
لطفا پیگیری کنید