I cant connect Google Play Game Services to my libgdx project.
Gradle say that SDK does not have Google Repository :
but I do have it installed:
My SDK path is valid
# Location of the android SDK
sdk.dir=D\:\\Android\\ADT\\sdk
I have google-play-services.jar from
D:\Android\ADT\sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs
but Gradle dont admit it.
Error:Could not find com.google.android.gms:play-services:8.4.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services/8.4.0/play-services-8.4.0.pom
https://repo1.maven.org/maven2/com/google/android/gms/play-services/8.4.0/play-services-8.4.0.jar
https://oss.sonatype.org/content/repositories/snapshots/com/google/android/gms/play-services/8.4.0/play-services-8.4.0.pom
https://oss.sonatype.org/content/repositories/snapshots/com/google/android/gms/play-services/8.4.0/play-services-8.4.0.jar
https://oss.sonatype.org/content/repositories/releases/com/google/android/gms/play-services/8.4.0/play-services-8.4.0.pom
https://oss.sonatype.org/content/repositories/releases/com/google/android/gms/play-services/8.4.0/play-services-8.4.0.jar
Required by:
BitMazes:android:1.0
I have cleaned,rebuilt, reloaded repositories, but nothing happend.
build.gradle : pastebin.com/RE9LRZjK
Stack say that >>it<< maybe help me, but not. It is not a my situation.
Related
I am developing a basic custom camera app
These are my dependency
// CameraX core library dependency
implementation "androidx.camera:camera-camera2:$camera_version"
// CameraX Lifecycle dependency
implementation "androidx.camera:camera-lifecycle:$camera_version"
// CameraX View dependency
implementation "androidx.camera:camera-view:$camera_version"
camera_version = '1.0.0'
Getting below error, it work fine if I remove camera-view dependency, but I cannot as I need that for my custom camera app.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find androidx.camera:camera-view.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/androidx/camera/camera-view/1.0.0/camera-view-1.0.0.pom
- https://repo.maven.apache.org/maven2/androidx/camera/camera-view/1.0.0/camera-view-1.0.0.pom
Required by:
project :app
As Morrison Chang already helped you with current issue.
I just wanted to add a few pointers to that whenever you get any such error in future for any of the android's library.
Search google's maven repo https://maven.google.com/ to see if the version you are looking for is even the correct one or what is the latest version of the library exists. like in your case https://maven.google.com/web/index.html?q=camera#androidx.camera:camera-view
Few of the library is still available at https://mvnrepository.com/ where you can check the version of your library
I was trying to install react-native-google-maps and in got this message in compile time:
> Could not find play-services-maps.jar (com.google.android.gms:play-services-maps:12.0.1).
Searched in the following locations:
https://maven.google.com/com/google/android/gms/play-services-maps/12.0.1/play-services-maps-12.0.1.jar
And the problem is the provided link is brook
Are there any reason that why google removed this link?
Update play-services-maps version to 15.0.0 instead of current 12.0.1 in Android/App/build.gradle file.
I am new to android.
I created new Android app project. Min SDK: 16, target: 21. And I got bunch of errors similar to this one:
[2016-05-31 22:36:16 - project1] E:\workspace\project1\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-05-31 22:36:16 - project1]
and also red underlined lines: "The import android.support.v7" cannot be resolved. The same with ActionBarUtilty and many others.
It was new project!
I reinstalled SDK and eclipse...it didn't helped.
I can't find solution..I tried to include .jar libraries from SDK but I am doing it wrong or it doesn't help..
Eclipse is dead for Android development, I think since 2013-2014. Download Android Studio https://developer.android.com/studio/index.html , You will see it very simple to start a new project.
You can download the sdk and android-studio in one installation.
I can compile and run my game using LibGDX 0.9.9 and RoboVM 0.0.7
I have been able to build an ipa for app store submission. Uploading my app with Application Loader, I get an error saying: This bundle is invalid. Apple is currently not accepting applications built with this version of Xcode.
Adding
<key>DTXcode</key>
<string>0502</string>
<key>DTXcodeBuild</key>
<string>5A3005</string>
to my info.plist, I get the same app store submission error.
I have tried compiling my project with every combination of the following libraries
LibGDX 0.9.9
LibGDX Nightly - 02/13/14
RoboVM 0.0.8
RoboVM 0.0.9
RoboVM 0.0.10-SNAPSHOT
With any version of RoboVM greater than 0.0.7, I get the following error:
java.lang.IllegalArgumentException: No #Marshaler found for parameter 1 of #Callback method <com.badlogic.gdx.backends.iosrobovm.objectal.AVAudioPlayerDelegate$Callbacks: void didFinishPlaying(com.badlogic.gdx.backends.iosrobovm.objectal.AVAudioPlayerDelegate,org.robovm.objc.Selector,org.robovm.cocoatouch.foundation.NSObject,boolean)>
at org.robovm.compiler.MarshalerLookup.findMarshalerMethod(MarshalerLookup.java:167)
at org.robovm.compiler.BroMethodCompiler.getParameterType(BroMethodCompiler.java:492)
at org.robovm.compiler.BroMethodCompiler.getBridgeOrCallbackFunctionType(BroMethodCompiler.java:513)
at org.robovm.compiler.BroMethodCompiler.getCallbackFunctionType(BroMethodCompiler.java:505)
at org.robovm.compiler.CallbackMethodCompiler.callback(CallbackMethodCompiler.java:78)
at org.robovm.compiler.CallbackMethodCompiler.compileCallback(CallbackMethodCompiler.java:107)
at org.robovm.compiler.CallbackMethodCompiler.doCompile(CallbackMethodCompiler.java:74)
at org.robovm.compiler.AbstractMethodCompiler.compile(AbstractMethodCompiler.java:74)
at org.robovm.compiler.ClassCompiler.callbackMethod(ClassCompiler.java:1070)
at org.robovm.compiler.ClassCompiler.compile(ClassCompiler.java:566)
at org.robovm.compiler.ClassCompiler.compile(ClassCompiler.java:283)
at org.robovm.compiler.AppCompiler.compile(AppCompiler.java:198)
at org.robovm.compiler.AppCompiler.compile(AppCompiler.java:216)
at org.robovm.compiler.AppCompiler.main(AppCompiler.java:438)
I'm at a loss. I just want to submit my app to the Apple App Store. RoboVM 0.0.7 doesn't seem to work and I can't compile my project with any newer version of RoboVM. Let me know if you need any more information.
How can I submit my app using RoboVM 0.0.7 (emulate Xcode 5.2)?
or
How can I fix my error and compile with >0.0.7?
The bundle is invalid problem was fixed in RoboVM 0.0.9 so you must use at least that version. The cause of the No #Marshaler found error is probably because you have an old version of robovm-cocoatouch.jar in your classpath somewhere. Make sure you only have jars from RoboVM 0.0.9 in your Eclipse classpath.
I am developing an app named "AndroidDataBase".
while am trying to compile in eclipse I am getting this error
Error executing aapt: Return code -1073741819 AndroidDataBase line 1 Android ADT Problem
and
Project 'AndroidDataBase' is missing required Java project: 'GoogleMaps' .
Where GoogleMaps is another androidApp.
I have the GoogleMap.java in AndroidDataBase "Src" folder.
I have tried clean build ,restarting eclipse sort of things ,still no result
Why am i getting this error ,and how to resolve it?
Thanks in advance
I have added the GoogleMap.java
the issue is activity_googlemap its not getting identified
although it is present in res/layout
You need to add the "google-play-services_lib" project as a library project. You will find it in your_sdk_root_path/extras/google/google_play_services/libproject/google-play-services_lib
Set your Project Build Target to Google API Build. From right click on project and go to Preference>Android tab>Select Target build of Google API.
I Dint installed the "Google Play Service" present in the SDK Manager .
Once I did that ,all I need is to follow the solution of # Joan P.S(Stated above I have accepted the ans,thanks to him.).
After that I have to add the Google MAP project(import it to the current work space(another app )) in Properties->Java Build Path->Projects .
That's how it got solved