Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo Installation › Getting an error when I build example project on android emulaotor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11997

    Khanh

    Hello everyone,

     

    I got this message when I run example project on android emulator and I dont know how to fix these error. Please explain for me how to fix it.

     

    Thanks very much

     

    Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
    java.lang.IllegalArgumentException: android.buildToolsVersion is missing!
    	at com.android.build.gradle.internal.SdkHandler.initTarget(SdkHandler.java:84)
    	at com.android.build.gradle.BasePlugin.ensureTargetSetup(BasePlugin.groovy:467)
    	at com.android.build.gradle.BasePlugin.access$0(BasePlugin.groovy)
    	at com.android.build.gradle.BasePlugin$_createTasks_closure9.doCall(BasePlugin.groovy:372)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:497)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
    	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:278)
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
    	at groovy.lang.Closure.call(Closure.java:423)
    	at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
    	at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
    	at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:83)
    	at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:31)
    	at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    	at com.sun.proxy.$Proxy12.afterEvaluate(Unknown Source)
    	at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:79)
    	at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:65)
    	at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:504)
    	at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:83)
    	at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
    	at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
    	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:129)
    	at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
    	at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
    	at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
    	at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
    	at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
    	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
    	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
    	at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
    	at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
    	at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
    	at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
    	at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
    	at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    	at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
    	at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
    	at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    	at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    	at org.gradle.launcher.Main.doAction(Main.java:33)
    	at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:497)
    	at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
    	at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
    	at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:497)
    	at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
    	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
    	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
    
    
    FAILURE: Build failed with an exception.
    
    * Where:
    Build file 'F:\Qt\Felgo\Examples\Felgo\demos\build-FlappyBird-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug\android-build\build.gradle' line: 39
    
    * What went wrong:
    A problem occurred evaluating root project 'android-build'.
    > Invalid revision: build-tools-23.0.1
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    BUILD FAILED
    
    Total time: 9.296 secs
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: HelperWidgets
    Building the android package failed!
      -- For more information, run this command with --verbose.
    12:21:41: The process "F:\Qt\Felgo\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project FlappyBird (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.1))
    When executing step "Build Android APK"
    12:21:41: Elapsed time: 00:33.

     

    #11999

    Günther
    Felgo Team

    Hi Khanh!
    Did you correctly install all required tools (SDK, NDK, …) to build for android? If not, please see here: Deploying to Android
    You can have a look at the settings for Android in the Qt Creator options. (in the “Android” tab)

    Best, Günther

    • This reply was modified 5 years, 11 months ago by  GT.
Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded