I just switched to Android Studio 2 and I'm trying to use Google Play services in my app. But I faced a really strange from the very beginning. Adding to Gradle.build such dependencies:
compile 'com.google.android.gms:play-services-maps:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0
cause error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: /media/valentyn/Seagate Backup Plus Drive/workspace/Studio Projects
16.02.16/LocalVenues/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-maps/8.4.0/AndroidManifest.xml (No such file or directory) Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Can it be some conflict with installed libraries in SDK Manager or what else?
I had the same kind of problem, caused by the new Instant Run in Android Studio 2, I solved it with:
Build > Rebuild Project
Run again.
The funny thing that this issue was related to NTFS file system of my portable driver. After moved my project, this problem was solved.
Related
i am running sample application using react-native-webrtc module. I am trying to run the application in android but i am getting an error like this...
* What went wrong:
A problem occurred configuring project ':WebRTCModule'.
> Could not find support-v4.jar (com.android.support:support-v4:23.4.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/23.4.0/support-v4-23.4.0.jar
* 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: 5.673 secs
Please give me any suggestions...
here is the modules i am using in this application...
"react": "~15.4.0",
"react-native": "0.41.2",
"react-native-webrtc": "^1.54.7",
"socket.io-client": "^1.7.2"
This issue is due to your local SDK version doesn't meet to the mentioned version (23.4.0),
To solve this issue, Go to android studio package manager and Install 23.4.0 SDK Version in it, else Update Android studio, and use latest SDK version which is 27.
I am working on Monaca.io and try to build android with Google maps plugin by the structions from cordova plugin google maps
After build it shown error below:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processReleaseResources'.
> Error: more than one library with package name 'com.google.android.gms'
You can temporarily disable this error with android.enforceUniquePackageName=false
However, this is temporary and will be enforced in 1.0
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: 10.305 secs
How do I fix it?
From within Monaca, go to Config -> Manage Plugins. Remove and reinstall the plugin via uploading the master.zip which can be found here: https://github.com/mapsplugin/cordova-plugin-googlemaps
The tutorial you linked to and the instructions followed were for Cordova 3.X. Monaca IDE is currently using 5.2.0. As such and as the tutorial states, the guide will no longer work as it generates the errors you describe.
I am trying to incorporate MixPanel in my Android application it requried google-play-services to the included as well. I added the following lines to my build.gradle
compile 'com.mixpanel.android:mixpanel-android:4.6.4'
compile 'com.google.android.gms:play-services:7.8.0'
I get the following error when I run $ gradle build --daemon
* What went wrong:
A problem occurred configuring root project 'git'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find com.google.android.gms:play-services:7.8.0.
Searched in the following locations:
http://dl.bintray.com/glomadrian/maven/com/google/android/gms/play-services/7.8.0/play-services-7.8.0.pom
http://dl.bintray.com/glomadrian/maven/com/google/android/gms/play-services/7.8.0/play-services-7.8.0.jar
https://jcenter.bintray.com/com/google/android/gms/play-services/7.8.0/play-services-7.8.0.pom
https://jcenter.bintray.com/com/google/android/gms/play-services/7.8.0/play-services-7.8.0.jar
file:/home/prakash/Programming/Android/android-sdk-linux/extras/android/m2repository/com/google/android/gms/play-services/7.8.0/play-services-7.8.0.pom
file:/home/prakash/Programming/Android/android-sdk-linux/extras/android/m2repository/com/google/android/gms/play-services/7.8.0/play-services-7.8.0.jar
Required by:
:git:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Any idea what the issue is ?
All I needed to do was install
Google Play Services
Google Respository
through my **Android SDK Manager"
Thanks #mateus #invariant #gabriele
You almost never will need all play services API.
Take a look into this list and compile just what you really need.
Google Play Services APIs
I am trying to build a signed APK with Android Studio.
I am getting the following error:
java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
My research leads me to understand that this is caused by one of my dependencies being compiled with an old version of Groovy. My only dependency is the Google Maps API, so that must be it.
(this is a thread that talks some on the issue)
However, I am unable to find a solution to this problem. I have tried several ways of adding the Groovy backports compat 2.3.5:
- adding it to gradle dependencies and syncing the project
- manually adding it to m2
- downloading the jar and adding it as a library
None of these have been successful. It is possible however, that one of these solutions may work, but that I am missing some key piece of information necessary.
If you know what that might be, or if you have another way to solve this, I'd like to hear from you.
Thanks.
[Edit]Here is some additional information
C:\Users\Donald\AndroidStudioProjects\ReuseAndRepairAndroid>gradle dependencies --info
Starting Build
Starting file lock listener thread.
Settings evaluated using settings file 'C:\Users\Donald\AndroidStudioProjects\ReuseAndRepairAndroid\settings.gradle'.
Projects loaded. Root project using build file 'C:\Users\Donald\AndroidStudioProjects\ReuseAndRepairAndroid\build.gradle'.
Included projects: [root project 'ReuseAndRepairAndroid', project ':app']
Evaluating root project 'ReuseAndRepairAndroid' using build file 'C:\Users\Donald\AndroidStudioProjects\ReuseAndRepairAndroid\build.gradle'.
Evaluating project ':app' using build file 'C:\Users\Donald\AndroidStudioProjects\ReuseAndRepairAndroid\app\build.gradle'.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Donald\AndroidStudioProjects\ReuseAndRepairAndroid\app\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not create plugin of type 'AppPlugin'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 2.982 secs
[/Edit]
I m trying to build the iosched app on ubuntu 14.04 on android studio 0.8 . After importing the setting.gradle file and following the build instruction I get an error saying
Error
:FAILURE: Build failed with an exception.
* What went wrong:
Task 'assemble' not found in root project 'iosched'.
* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
The solution mentioned in this post doesn't work either.
Try to add this: task assemble{} in your root build.gradle file.
According to this thread it helps (it helped me as well).
In my case, it was because my project implemented a Module that was an android-library (deprecated) / com.android.library which used a minSdkVersion lower than my project.
Be sure that your project and android-library / com.android.library have the same minSdkVersion.