I am taking Coursera Programming Mobile Applications for Android handheld systems course and when I try to run labs I get the error:
(24, 24): failed to resolve:
com.jayway.android.robotium:robotium-solo:5.3.1
My system is using a Proxi, but I adjust AS so updates and component are available. What should I do to resolve this error?
To be able to use a lib project you need to include it in your application's settings.gradle add:
include '..:ExpandableButtonMenu:library'
compile project(':..:ExpandableButtonMenu:library')
Good link visit "how to build an android library with android studio and gradle
Related
I get the following error when running the app on Android
ERROR: Failed to resolve: constraintlayout-solver
Affected Modules: app
enter image description here
please help me
Please try to fix the error adding a higher version of the ConstraintLayout dependency, as well as with higher minSdkVersion and then re-sync the project with Gradle again.
implementation "androidx.constraintlayout:constraintlayout:2.0.0-beta4".
For furhter reading take a look at the official documentation.
Im Using Android Studio 3.0.1, the project uses SDK Version 26. I try to pull messages from Google Cloud PubSub Module using the library 'grpc-pubsub-v1' adding in the app build.gradle the line:
compile ('com.google.api.grpc:grpc-pubsub-v1:0.0.2')
When the gradle sync the next error appear:
Error:Execution failed for task':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
Maybe the version of the library is not compatible with the version of SDK, Gradle or other thing, also, adding the line 'multiDexEnabled true' dont fix the problem, the gradle version is 3.0.1.
Which is the correct library to use, or how to find it?
As you are using gradle version is 3.0.1, you need to change compile to implementation as shown in this gradle document. It is a change that was done on the version 3.0.
I get this error while integrating openCV with android studio.
I am new to android and not able to understand why this error occurs.
Error:Execution failed for task ':app:compileDebugNdk'.
Error: Your project contains C++ files but it is not using a supported native build system.
Consider using CMake or ndk-build integration with the stable Android Gradle plugin:
https://developer.android.com/studio/projects/add-native-code.html
or use the experimental plugin:
https://developer.android.com/studio/build/experimental-plugin.html.
I suggest that you should try one of the NDK examples provided by Google, and become familiar with using the NDK before trying a large library like OpenCV on Android Studio. The answers here are quite detailed, and can be helpful.
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
I use eclipse LUNA for android development. I installed Fabric plugin to add crashanalytics today and suddenly I am seeing some error which I am not able to identify.
The project shows red mark for errors but none of the files have the same error mark
And when I try to run/build the project I get the following error
An internal error occurred during: "Running GTM diagnose".
com.android.tools.lint.detector.api.XmlContext: method (Lcom/android/tools/lint/client/api/LintDriver;Lcom/android/tools/lint/detector/api/Project;Lcom/android/tools/lint/detector/api/Project;Ljava/io/File;Lcom/android/resources/ResourceFolderType;)V not found
Also i am seeing this error repeatedly in the console
[2014-12-05 08:56:41 - com-crashlytics-sdk-android_answers] Unable to resolve target 'android-21'
[2014-12-05 08:56:41 - com-crashlytics-sdk-android_crashlytics] Unable to resolve target 'android-21'
This is my first android project so sorry if this is a noob question. Any help would be appreciated
After installing SDK version 21, you will have this issue:
You are building your app with a sdkTarget defined in your manifest with a value lower than 21.
Your choices are:
a) upgrade your project to use: android:targetSdkVersion="21"
OR
b) change each crashlytics kit's manifest's targetSdkVersion to match your project