Hi im trying to set up and environment for Android wear and run a simple hello world
I have installed all necessary stuff (or i think so..) but im getting this compilation issue
"Cannot resolve symbol AndroidWear" when my main activity extends the android wear class MyActivity extends WatchActivity
What i have installed
Android Studio
SDK build tools and api 19, 20 and L preview
im definitely missing something... but i dont know what ideas?
Don't use WatchActivity. Use the standard Activity instead.
The WatchActivity doesn't exist in current SDK.
Related
I made a basic application in Android Studio from guide
It works fine in emulator
But when I try to go to some sources, android.content.Context in particular it looks all red - half of imports are red 'Cannot find declaration to go' screenshot
Why is it so and how can I fix it making it black and look into android.annotation.AttrRes for example?
your Mapper 4.x is not supported in android studio that's y the modules are unable to import, I believe there is a setup problem, you should follow the steps from the below link
https://developers.google.com/maps/documentation/android-api/utility/setup
once done with setup make sure you are using the latest dependency of google maps
"compile 'com.google.android.gms:play-services-maps:10.0.1'"
I have written a program using intellij and want to import the code into android studio but i can't find any tutorials that have this specifically.
I am only able to find using kotlin in andoid studio or convert from kotlin to java.
I know it will be easy and that I am not looking in the right places but could really do with a pointer, I have been trying to do it all day lol im starting to loose the will!
Thanks
Not sure if I understood your question correctly, but if you have a bunch of code files and wanna import your code into Android Studio, the easiest way is to just create a new Android Studio Kotlin project, copy your code files from your IntelliJ project to your new Android Studio project, then adjust the code for Android.
If you do it inside the programs instead of in the file explorer, it will even adjust the package names for you.
Here's what I mean exactly by inside the programs:
If you want to create an Android application with the code that you write in IntelliJ. You can create an app in Android Studio and paste the code in the right place(should be in onCreate method) and manage the way that you will show the result. Also you can create an Android application in IntelliJ with the Android plugin.
I am trying to use AndEngine with Android Studio 2.1 and I am running issues specifically with the NDK stuff. The version of AndEngine I am trying to use is the GLES2-AnchorCenter for reference. I create my project and add AndEngine as a module, then give my project a dependency on my AndEngine module. What I end up with is an issue with native code, specifically in in GLES20Fix.c. I get an error message about openGL ES2.0 specific stuff:
Error:(8) undefined reference to `glVertexAttribPointer'
Error:(12) undefined reference to `glDrawElements'`
I know this topic has come up before and I have read this article on the subject but that's what I was already trying to follow and that uses an older version of Android Studio that has a different import option I do not have in 2.1. I have also checked and the NDK plugin for android studio is installed and my minimum build target is over SDK level 9.
One strange detail: when I tried importing andengine as a library in eclipse it worked okay. I don't want to rely on that because I know eclipse is no longer supported for android developer tools so I want to switch off it to the newest version of Android Studio.
Can you try adding
ldLibs.addAll(['EGL', 'GLESv2'])
eg. https://github.com/googlesamples/android-ndk/blob/master/Teapot/app/build.gradle
I had the same issue. This answer helped me.
I just needed to add the following to build.gradle:
sourceSets {
main {
jni.srcDirs = []
jniLibs.srcDir 'libs'
}
}
and then rebuild the project.
I am trying to add a 3rd party library to my project.
But it keeps on giving this error:
Error:(10, 0) Could not find property 'VERSION_NAME' on project ':library'.
I am adding Floating action button library
Can someone mention me the proper steps how do I import it?
as mentioned in here in the link you provided. You just simply paste this into your Build.gradle file
compile 'com.getbase:floatingactionbutton:1.9.0'
If you want to learn more about android studio, check out this tutorial I made on getting started with android studio :D
Steps to reproduce:
Create a new xamarin forms app
Build iOS => Ensure it builds successfully
Add the iOS component for Firebase Cloud Messaging for iOS from the component store
Clean, Rebuild => Notice you get object reference error while compiling the iOS project
Here is the error from output window:
"src\RepeatReturns\packages\Xamarin.Build.Download.0.2.2\build\Xamarin.Build.Download.targets(25,3): error : Object reference not set to an instance of an object."
Any idea how can we fix this?
Thanks
UPDATE:
If it helps, I have the linker option for iOS set to "link SDK assemblies only".
If you are using Visual Studio 2017 RC, then I suggest that you stuck with Visual Studio 2015 for the moment, I had the same issue, and I didn't find any solution. So I reinstalled VS 2015, and everything is working now.