Failure build failed with an exception как исправить

Создал на Unity простой проект и столкнулся с проблемой что при компиляции apk файла, выходит ошибка, как исправить? FAILURE: Build failed with an exception. * Where: Build file ‘C:UserssobolOneDriveРабочий столunityclicker.v4TempgradleOutlauncherbuild.gradle’ line: 3 * What went wrong: A problem occurred evaluating project ‘:launcher’. > Failed to apply plugin [id ‘com.android.internal.application’] > Your project path contains […]

Содержание

  1. Создал на Unity простой проект и столкнулся с проблемой что при компиляции apk файла, выходит ошибка, как исправить?
  2. FAILURE: Build failed with an exception #29703
  3. Comments
  4. Description
  5. React Native version:
  6. Steps To Reproduce
  7. Expected Results
  8. Snack, code example, screenshot, or link to a repository:
  9. Flutter is showing «FAILURE: Build failed with an exception.» #63107
  10. Comments
  11. FAILURE: Build failed with an exception. Could not compile build file ‘C:myappplatformsandroidbuild.gradle’. #3806
  12. Comments
  13. FAILURE: Build failed with an exception
  14. #1 Alex356
  15. Прикрепленные файлы
  16. #2 Freiman
  17. #3 Alex356
  18. #4 barancev

Создал на Unity простой проект и столкнулся с проблемой что при компиляции apk файла, выходит ошибка, как исправить?

FAILURE: Build failed with an exception.

* Where:
Build file ‘C:UserssobolOneDriveРабочий столunityclicker.v4TempgradleOutlauncherbuild.gradle’ line: 3

* What went wrong:
A problem occurred evaluating project ‘:launcher’.
> Failed to apply plugin [id ‘com.android.internal.application’]
> Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See b.android.com/95744 for details. This warning can be disabled by adding the line ‘android.overridePathCheck=true’ to gradle.properties file in the project directory.

* 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.

BUILD FAILED in 1s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

CommandInvokationFailure: Gradle build failed.
C:Program FilesUnityHubEditor2020.3.14f1EditorDataPlaybackEnginesAndroidPlayerOpenJDKbinjava.exe -classpath «C:Program FilesUnityHubEditor2020.3.14f1EditorDataPlaybackEnginesAndroidPlayerToolsgradlelibgradle-launcher-5.6.4.jar» org.gradle.launcher.GradleMain «-Dorg.gradle.jvmargs=-Xmx4096m» «assembleRelease»

FAILURE: Build failed with an exception.

* Where:
Build file ‘C:UserssobolOneDriveРабочий столunityclicker.v4TempgradleOutlauncherbuild.gradle’ line: 3

* What went wrong:
A problem occurred evaluating project ‘:launcher’.
> Failed to apply plugin [id ‘com.android.internal.application’]
> Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See b.android.com/95744 for details. This warning can be disabled by adding the line ‘android.overridePathCheck=true’ to gradle.properties file in the project directory.

* 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.

BUILD FAILED in 1s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[

]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at :0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
Rethrow as BuildFailedException: Exception of type ‘UnityEditor.Build.BuildFailedException’ was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :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 :0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Build completed with a result of ‘Failed’ in 25 seconds (24999 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

4)
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

У меня присутствуют 2 скрипта, основной и для звуков
основной скрипт
https://pastebin.com/sMAuicqi

1)

2)

3)

Если я что то не то расписал или что то было лишним, то заранее извините все кто хочет помочь, в первые задаю вопрос на форуме.
и если вдруг нужна еще какая то информация, то пишите, предоставлю все что требуется, лишь бы решить проблему

Источник

FAILURE: Build failed with an exception #29703

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

FAILURE: Build failed with an exception.

Where:
Script ‘C:UsersTempzoekappnode_modulesreact-nativereact.gradle’ line: 238

What went wrong:
A problem occurred configuring project ‘:app’.

Could not get unknown property ‘mergeResourcesProvider’ for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.

React Native version:

System:
OS: Windows 10 10.0.18363
CPU: (4) x64 Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz
Memory: 3.94 GB / 7.92 GB
Binaries:
Node: 12.18.3 — C:Program Filesnodejsnode.EXE
Yarn: Not Found
npm: 6.14.6 — C:Program Filesnodejsnpm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 25, 26, 29, 30
Build Tools: 26.0.2, 27.0.3, 28.0.3, 29.0.2, 30.0.2
System Images: android-26 | Intel x86 Atom_64, android-26 | Google APIs Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version 4.0.0.0 AI-193.6911.18.40.6626763
Visual Studio: Not Found
Languages:
Java: 1.8.0_262
Python: 2.7.18
npmPackages:
@react-native-community/cli: Not Found
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: ^0.63.2 => 0.63.2
npmGlobalPackages:
react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Existing project from someone else
  2. Did the installation of React through https://reactnative.dev/docs/environment-setup
  3. In the folder I did: npm install
  4. After that i did: npm audit-fix
  5. Then npx react-native run-android
  6. At the build the error message

Expected Results

I expect that my app would build and that i would see my app in an android emulator

Snack, code example, screenshot, or link to a repository:

The text was updated successfully, but these errors were encountered:

Источник

Flutter is showing «FAILURE: Build failed with an exception.» #63107

flutter is showing > FAILURE: Build failed with an exception.

This is the full message

  • What went wrong:
    Execution failed for task ‘:app:compileDebugJavaWithJavac’.

Could not create service of type DefaultUserHomeScopedCompileCaches using UserHomeScopeServices.createCompileCaches().

Below is this execution code after the instance at above

Exception: Gradle task assembleDebug failed with exit code 1

This is the image below for more clarity.

and i am also not seeing the launch.json folder

The text was updated successfully, but these errors were encountered:

Hi @iamaboyeji
Can you please provide your flutter doctor -v , your flutter run —verbose and your pubspec.yaml .
Thank you

@pedromassango thank you sir, i will

flutter run —verbose

pubspec.yaml

Hi @iamaboyeji
Can you please provide your flutter doctor -v .
Thank you

hello everyone, i am closing this issue, i have successfully resolved it, thanks @pedromassangocode @pedromassango

to prevent any further re-occurrence on this issue, i am providing the solutions i used.

**after creating the project, inside the graddle folder, check wrapper, then check graddle properties, in this folder check for graddle version. after doing this check

hello everyone, i am closing this issue, i have successfully resolved it, thanks @pedromassangocode @pedromassango

to prevent any further re-occurrence on this issue, i am providing the solutions i used.

after creating the project, inside the graddle folder, check wrapper, then check graddle wrapper properties, in this folder check for graddle version. after doing this check this path in your system say;

C:UsersUSER.gradlewrapperdists
note: this is for my system check, your respective gradlewrapperdists folder in your system

**then check if the gradle version found in your project gradle-wrapper-properties, if it is not the same maybe you should download the version found in the gradle-wrapper-properties folder in your project, then after downloading it relocate it without unzipping to the respective C:UsersUSER.gradlewrapperdists folder in your system, then restart your system. after restarting, then run flutter run in your ide terminal

note this may also be caused by a new update in android studio, if this is the case as it was for a friend of mine, just consider upgrading android studio, it will update the gradle wrapper, then relaunch flutter in your ide, it should work properly

pls note i am no pro or long term user, i also asked this question and i was debugging for three days, so while trying everything i could, i finally resolved the issue with solutions stated above, so if it does not work for you, pls contact other pro flutter unblockers like @pedromassango and the likes

If you have any questions i am available if i can answer
Thank you

Источник

FAILURE: Build failed with an exception. Could not compile build file ‘C:myappplatformsandroidbuild.gradle’. #3806

when i run «ionic cordova build android —release —stacktrace —info android«

FAILURE: Build failed with an exception.

Where:
Build file ‘C:myappplatformsandroidbuild.gradle’ line: 328

What went wrong:
Could not compile build file ‘C:myappplatformsandroidbuild.gradle’.

startup failed:
build file ‘C:myappplatformsandroidbuild.gradle’: 328: unexpected token: > @ line 328, column 1.
>
^

Try:
Run with —stacktrace option to get the stack trace. Run with —info or —debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

Where:
Build file ‘C:myappplatformsandroidbuild.gradle’ line: 328

What went wrong:
Could not compile build file ‘C:myappplatformsandroidbuild.gradle’.

startup failed:
build file ‘C:myappplatformsandroidbuild.gradle’: 328: unexpected token: > @ line 328, column 1.
>
^

  • Try:
    Run with —stacktrace option to get the stack trace. Run with —info or —debug option to get more log output.

[ERROR] An error occurred while running cordova build android —release (exit code 1).

The text was updated successfully, but these errors were encountered:

Источник

FAILURE: Build failed with an exception

#1 Alex356

  • Members
  • 2 сообщений
    • ФИО: Alexander Kozhokar

    Добрый день, уважаемые профессионалы!

    Являюсь новичком, и поэтому прошу помочь в возникшей трудности в моем обучении, так как она не дает мне дальше продвигаться.

    При запуске запуске программы .java в «Intellij IDEA», программа выдает следующий текст об ошибке:

    Прикрепленные файлы

    • Безымянный.jpg77,95К 1 Количество загрузок:

    #2 Freiman

  • Members
  • 1 591 сообщений
    • ФИО: Андрей Адеркин
    • Город: Йошкар-Ола

    #3 Alex356

  • Members
  • 2 сообщений
    • ФИО: Alexander Kozhokar

    А что у вас в grade-файлах?

    В build.gradle у меня:

    #4 barancev

  • Admin
  • 6 862 сообщений
    • ФИО: Алексей Баранцев
    • Город: Россия, Москва

    Не уверен, что уже починили, поэтому можно обойти его вот так:

    Источник

    I’m trying to build my android app for a while and can’t seem to find any solution for this problem:
    Image

    Unity Version: Unity 2020.3.21f1 (64-bit)
    JDK, SDK, NDK and Gradle used are Unity’s recommended ones (already tried to use other ones).

    The console details are here:

    Configure project :launcher
    WARNING: The option setting 'android.enableR8=false' is deprecated.
    It will be removed in version 5.0 of the Android Gradle plugin.
    You will no longer be able to disable R8
    
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)`
    
        FAILURE: Build failed with an exception.
    
        * What went wrong:
        com/sun/istack/FinalArrayList
        
        * 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.
    
        CommandInvokationFailure: Gradle build failed. 
        C:Program FilesUnityHubEditor2020.3.21f1EditorDataPlaybackEnginesAndroidPlayerOpenJDKbinjava.exe -classpath "C:Program FilesUnityHubEditor2020.3.21f1EditorDataPlaybackEnginesAndroidPlayerToolsgradlelibgradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
        
        stderr[
        
        FAILURE: Build failed with an exception.
    
        Build completed with a result of 'Failed' in 60 seconds (59527 ms)
        UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    
    UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
      at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <208f92fc783546f9abbe643bfc23920c>:0 
      at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <208f92fc783546f9abbe643bfc23920c>:0 
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    

    I already tried all tutorials on youtube and other forums, but every help is welcome, thanks!

    Edit 1:

    After trying Jaimin’s solution this is happening now:

    Assets/Plugins/AndroidgradleTemplate.properties file is using a deprecated way of controlling which tool should be used to do the minification. To fix this, remove "useProguard" entries yourself. If not fixed, your build can fail.
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    
    
     File C:UsersWindows.androidrepositories.cfg could not be loaded.
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    
    Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
    
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    com/sun/istack/FinalArrayList
    > com.sun.istack.FinalArrayList
    
    * 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 5s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    
    CommandInvokationFailure: Gradle build failed. 
    C:Program FilesUnityHubEditor2020.3.21f1EditorDataPlaybackEnginesAndroidPlayerOpenJDKbinjava.exe -classpath "C:Program FilesUnityHubEditor2020.3.21f1EditorDataPlaybackEnginesAndroidPlayerToolsgradlelibgradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
    
    stderr[
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    com/sun/istack/FinalArrayList
    > com.sun.istack.FinalArrayList
    
    * 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 5s
    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
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f94168442e634613b6a5965ed17c38f4>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f94168442e634613b6a5965ed17c38f4>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f94168442e634613b6a5965ed17c38f4>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <f94168442e634613b6a5965ed17c38f4>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <f94168442e634613b6a5965ed17c38f4>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <f94168442e634613b6a5965ed17c38f4>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f94168442e634613b6a5965ed17c38f4>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f94168442e634613b6a5965ed17c38f4>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <f94168442e634613b6a5965ed17c38f4>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f94168442e634613b6a5965ed17c38f4>: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 <f94168442e634613b6a5965ed17c38f4>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <f94168442e634613b6a5965ed17c38f4>: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 <208f92fc783546f9abbe643bfc23920c>:0)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
    
    Build completed with a result of 'Failed' in 127 seconds (127448 ms)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    
    UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors
      at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <208f92fc783546f9abbe643bfc23920c>:0 
      at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <208f92fc783546f9abbe643bfc23920c>:0 
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    

    And here’s how the Custom Gradle Properties Template file is coded:

    org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M
    org.gradle.parallel=true
    unityStreamingAssets=.unity3d**STREAMING_ASSETS**
    **ADDITIONAL_PROPERTIES**
    

    #1

    Alex356

      Новый участник

    • Members
    • Pip

    • 2 сообщений
    • ФИО:Alexander Kozhokar

    Отправлено 10 ноября 2019 — 13:49

    Добрый день, уважаемые профессионалы!

    Являюсь новичком, и поэтому прошу помочь в возникшей трудности в моем обучении, так как она не дает мне дальше продвигаться.

    При запуске запуске программы .java в «Intellij IDEA», программа выдает следующий текст об ошибке:

    «FAILURE: Build failed with an exception.

    * Where:

    Initialization script ‘C:UsersAlexandrAppDataLocalTempHello_main__.gradle’ line: 18

    * What went wrong:

    A problem occurred configuring root project ‘sandbox’.

    > Could not create task ‘:Hello.main()’.

       > Unnecessarily replacing a task that does not exist is not supported.  Use create() or register() directly instead.  You attempted to replace a task named ‘Hello.main()’, but there is no existing task with that name.

    * 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.

    Дополнительно прикрепляю скриншот.

    Заранее признателен тем, кто откликнется на мою просьбу.

    С уважением, Александр.

    • 0

    • Наверх


    #2

    Freiman

    Freiman

    • ФИО:Андрей Адеркин
    • Город:Йошкар-Ола

    Отправлено 10 ноября 2019 — 14:04

    А что у вас в grade-файлах?

    • 0

    • Наверх


    #3

    Alex356

    Alex356

      Новый участник

    • Members
    • Pip

    • 2 сообщений
    • ФИО:Alexander Kozhokar

    Отправлено 10 ноября 2019 — 15:16

    А что у вас в grade-файлах?

    В build.gradle у меня:

    apply plugin: ‘java’

    apply plugin: ‘application’

    mainClassName = «Hello»

    • 0

    • Наверх


    #4

    barancev

    barancev

    • ФИО:Алексей Баранцев
    • Город:Россия, Москва

    Отправлено 29 ноября 2019 — 12:13

    Это баг в IDEA: https://youtrack.jet…sue/IDEA-226836

    Не уверен, что уже починили, поэтому можно обойти его вот так:

    Открываете File -> Settings, там внутри Build, Execution, Deployment -> Gradle, выбираете нужный модуль и меняете два выпадающих меню — «Build and run unsing» ставьте там IntelliJ, и «Run tests using» тоже выбираете IntelliJ.

    После этого закрываете настройки, открываете Run -> Edit configurations и удаляете оттуда все конфигурации запуска типа Gradle и всё, после этого сборка и запуск будут выполняться без использования Gradle-плагина, пусть пока чинят его.

    • 0

    • Наверх


    Ошибка компиляции APK: Gradle build failed

    После обновления юнити, SDK и JDK не могу скомпилировать проект. Пробовал даунгрейдить, не получается. Как это пофиксить я уже не представляю.
    1 ошибка:

    Вторая ошибка:

    Все что смог найти в гугле перепробовал (в т.ч и на иностранных форумах). Ничего не помогло
    Буду рад любой помощи. Спасибо.

    Sindunity
    UNец
     
    Сообщения: 9
    Зарегистрирован: 07 июн 2017, 13:43

    Re: Ошибка компиляции APK: Gradle build failed

    Сообщение DbIMok 16 авг 2018, 17:45

    нужно или multidex или включать minify и настраивать gradle

    Аватара пользователя
    DbIMok
    Адепт
     
    Сообщения: 6321
    Зарегистрирован: 31 июл 2009, 14:05

    Re: Ошибка компиляции APK: Gradle build failed

    Сообщение Sindunity 17 авг 2018, 13:38

    DbIMok писал(а):нужно или multidex или включать minify и настраивать gradle

    А как это настроить, не подскажете?

    Sindunity
    UNец
     
    Сообщения: 9
    Зарегистрирован: 07 июн 2017, 13:43

    Re: Ошибка компиляции APK: Gradle build failed

    Сообщение DbIMok 17 авг 2018, 16:54

    если под настроить вы имеете в виду gradle, то переключиться в PlayerSettings, выбрать minify
    Изображение
    и настроить в proguard-user файле (шаблончик взять из каталога юнити) классы, которые нужно сохранить (к тем что есть добавить свои). должно получиться что-то типа

    Используется csharp

    keep class bitter.jnibridge.* { *; }
    keep class com.unity3d.player.* { *; }
    keep class org.fmod.* { *; }

    keep class com.google.android.c2dm.** { *; }
    keep class com.google.android.gms.** { *; }
    keep class com.chartboost.sdk.unity.** { *; }
    keep class com.yandex.metrica.** { *; }
    keep class com.ursegames.unitybridge.** { *; }
    keep class com.fyber.** { *; }
    keep class com.facebook.** { *; }
    keep class com.appsflyer.** { *; }
    keep class com.google.zxing.** { *; }
    keep class com.google.firebase.** { *; }
    keep class com.evernote.android.job.** { *; }
    keep class com.ablar.android.** { *; }
    keep class com.fyber.mediation.** { *; }
    keep class com.tapjoy.** {*;}
    keep class com.devtodev.** {*;}
    keep class com.mopub.** {*;}
    keep class ru.odnoklassniki.** {*;}

    dontwarn com.google.android.gms.**
    dontwarn com.google.zxing.**
    dontwarn com.google.firebase.iid.**
    dontwarn com.evernote.android.job.v14.**
    dontwarn com.evernote.android.job.**
    dontwarn com.fyber.mediation.tapjoy.**
    dontwarn com.tapjoy.internal.**
    dontwarn com.devtodev.**

    порешать ошибки которые возникнут в процессе сборки — дубликаты и т.п., потом во время выполнения (если что-то лишнее минификатор вырезал)
    в общем все по мануалу

    https://docs.unity3d.com/Manual/android … rview.html

    Аватара пользователя
    DbIMok
    Адепт
     
    Сообщения: 6321
    Зарегистрирован: 31 июл 2009, 14:05

    Re: Ошибка компиляции APK: Gradle build failed

    Сообщение CoolMaxYT 15 июл 2020, 22:55

    Почему я сразу сюда не посмотрел, у меня проект так очень важный не сбилдился, потом во время билда юнити крашнулся, скрипты полетели, восстанавливал 5 раз, пока оно окончательно не сломалось

    CoolMaxYT
    UNец
     
    Сообщения: 1
    Зарегистрирован: 15 июл 2020, 22:53


    Вернуться в Общие вопросы

    Кто сейчас на конференции

    Сейчас этот форум просматривают: Google [Bot] и гости: 12

    

    Понравилась статья? Поделить с друзьями:
  • Failsafe mode open telnet and remove lg как исправить
  • Failed write to device failed no link fastboot error command failed
  • Failed write to device failed in sendbuffer too many links fastboot error command failed
  • Failed with the operating system error 5 access is denied
  • Failed with error code 195 mac os