I added AndEngine as a module dependency but when I try to run my project I am faced with the following error :
Gradle: Execution failed for task ':Game:compileDebug'.
Compilation failed; see the compiler error output for details.
And
Gradle: error: package org.andengine.engine.camera does not exist
Has anyone been able to successfully get their AndEngine running on Android Studio? I would greatly appreciate it if you could tell me the steps I need to take to get it running.
What I ended up doing was creating the project in eclipse and setting up andengine for the project, then importing that same project in android studio, set up the required dependencies then I been using it since no hassle.
Related
In Mac, I've setup Flutter in Android studio. When I'm running project it gives me error
* What went wrong:
Execution failed for task ':location:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
I'm using all latest versions of Flutter, Kotlin, Gradle etc.
You need to equalize kotlin version in first row which is ext.kotlin_version = '1.6.10' to according to classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" of underlined $kotlin_version
After this, the problem will solve...
Actually I found a solution for my problem. There are 2 dependency defined in .yaml file 1. geo_location and 2. location.
After removing the location dependency from .yaml file and run command flutter pub get I can successfully build android build from Mac. This solution might not be global but solution of my problem I found this.
Thank you!
Happy coding.
I am a beginner in the field of android studio. Creating a new project takes a lot of time - 15 minuted. I tried to enable the "offline work" option , but after I did it - it is still too slow.
And in addition , when I creat a new project, I get the following error:
Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
> Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
First of Upgrade your PC configuration.
And to avoid the error download the SDK file properly.
I am trying to include exoplayer in my project but am getting the following errors
Failed to resolve: com.google.android.exoplayer:exoplayer:r2.6.1
then when I click Install Repository and sync project I get another error
Could not find dependency "com.google.android.exoplayer:exoplayer:r2.6.1"
Anyone who can knows how to fix this?
Found the solution! instead of "com.google.android.exoplayer:exoplayer:r2.6.1" it is supposed to be "com.google.android.exoplayer:exoplayer:2.6.1"
Note there is no "r" at exoplayer:2.6.1
I'm working on an Android project with two projects inside it. When trying to run a build with gradlew (./gradlew build), I see the following error:
Execution failed for task ':example:lint'.
Could not initialize class
com.android.build.gradle.tasks.Lint$LintGradleIssueRegistry
With stacktrace enabled, this is listed as a java.lang.NoClassDefFoundError.
Oddly, the first time I ran this (which downloaded dependencies), the build failed with a different error:
Execution failed for task ':example:lint'.
lombok/ast/Node
The gradle wrapper that Android SDK created for the project is using Gradle 2.8.
Could this be a configuration issue with the project or my dev machine? I'm trying to avoid using the Android SDK lint tool as this complains about the projects using Gradle (and I hear it may miss some parts of these projects).
Turned out this was a configuration issue in our build.gradle. The following line had been added for testing and never removed:
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
As such, the classes needed for linting were missing.
The following discussion pointed us in the right direction, in case it's useful to anyone else:
https://github.com/evant/gradle-retrolambda/issues/96
I am trying to import an android ocr project from Eclipse(juno) to Android Studio. However faces the following error.
Error:Execution failed for task ':eyestwo:compileReleaseNdk'.
Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.
I have tried searching for solution for this problem and found several solutions from this links:
After updating Android Studio to version 1.3.0 I am getting "NDK integration is deprecated in the current plugin" Error
NDK Integration in Android Studio Error
However, both methods did not work for me as the 2nd method leads to the error:
"Gradle DSL method not found:'sourceSets()'"
The 1st method leads to the error as shown below when I try to run the application:
The source code I used is from here: https://github.com/TheWall89/AndrOCR
Follow this guide and u'll get the correct result... I have done this before..
Tess Two guide for android studio
My project source code