I have download from Xamarin Studio Tasky Project and open it
with Visual Studio 2015 Enterprise Edition
when i build the Solution i got these Errors in ANDROID App
with knowledge that i didn't changed any thing yet in the project.
i tried to build and clean and rebuild the project but still the it gives me an error once i build it.
while iOS version is building and running perfectly
Try right click on Android head > Properties > Choose Application panel. Compare the Namespace in Application panel of the Android project is equal with the namespace in the Resource Designer file (/Resources/Resource.Designer.cs). If not don't change this direct in Resource.Designer.cs file (because the file will be automatically generated). Instead, you can change the namespace in all affected files to the namespace you see in the Android Application panel or use 'using' in the affected files.
This error is due to Android SDK Platform of target OS API version is not installed. Make sure you install all Android APIs SDK versions, specifically the one's you're targeting in Project Settings of Android in Visual Studio.
Open Android SDK Manager and revise the below
Once you install them, restart, then open VS and clean the build output and re-build everything.
So, After trying to solve this problem with many ways and all of it are not the optimal solution.
i Finally find the root Solution for this Issue.
you should Uninstall any Android Build-Tools Which In The Preview Chanel in the Android SDK Manager.
after doing so, clean and rebuild the Xamarin project.
Related
I am using Android Studio 1.5.1 on windows 7 .I am not able to find the rebuild or clean option under the "Build" option?Is there any command to force rebuild or do it form the Android GUI?
The project was built in Eclipse and I have imported it in Android Studio.Earlier I was getting some error from google Play services which I have resolved by commenting the below line in the project.properties
target is android-23
android.library.reference.1=../../../../workspace/google-play-services_lib
Maybe there is something that you need to update before continuing to develop your project. Check on Help -> Check for Updates...
You should always keep Android Support Repository, Google Play Services, Google Repository, Android SDK Tools and Android SDK Platform-Tools updated.
I also encountered this problem and my Android studio was also latest version. As a workaround for this problem what I did was to open the module settings and changed values and reverted back to old values and click ok. After that those missing menu items appeared.
I'm trying to create a hybrid application through the IONIC framework which displays multiple moving graphics implemented through HTML5 Canvas and JS. But, the animation renders very slowly in mobiles (even those with 1GB RAM).
We have identified and downloaded FastCanvas (Cordova/PhoneGap plugin). We followed the instructions given in the URL - https://github.com/phonegap/phonegap-plugin-fast-canvas. But under "Adding FastCanvas to Your Application" we hit a roadblock when we come to instructions 3 and 4 as there are no Java folders in my project.
The example (HTML5 Game) given in the url is done through PhoneGap which has the mentioned folder structure and it works fine when we build through Android studio.
We have tried to build our project (done through ionic framework) through Android Studio but, gradle build system was unable to identify the framework. Request someone to please guide me further to solve this issue since, I'm struggling to come up with a solution for long.
Note: We have already tried Canvas, JS, CSS3 and wizCanvas plugin for the animation but, the output is same - slow.
Whoo-hoo.
After a long struggle, this is what finally worked for me:
Opening a Project in Android Studio
Cordova for Android projects can be opened in the Android IDE, Android Studio. This can be useful if you wish to use Android Studio's built in Android debugging/profiling tools or if you are developing Android plugins. Please note that when opening your project in Android studio, it is recommended that you do NOT edit your code in the IDE. This will edit the code in the platforms folder of your project (not www), and changes are liable to be overwritten. Instead, edit the www folder and copy over your changes by running cordova build.
Plugin developers wishing to edit their native code in the IDE should use the --link flag when adding their plugin to the project via cordova plugin add. This will link the files so that changes to the plugin files in the platforms folder are reflected in your plugin's source folder (and vice versa).
To open a Cordova for Android project in Android Studio:
Launch Android Studio.
Select Import Project (Eclipse ADT, Gradle, etc).
Select the Android platform directory in your project (/platforms/android).
For the Gradle Sync question you can simply answer Yes.
(If prompted to update gradle from v2.3 to 3.3. click Update)
Once it finishes importing, you should be able to build and run the app directly from Android Studio. See Android Studio Overview and Building and Running from Android Studio for more details.
Refs:
https://cordova.apache.org/docs/en/latest/guide/platforms/android/
https://www.codeproject.com/articles/1068176/step-by-step-guide-to-build-ionic-hybrid-app-using
I just want to start a simple Android project and quickly make changes and install it on my phone using simple right-click --> Run as an Android application.
I could do this in Eclipse but I really like Android Studio's (i.e. IntelliJ IDEA's editor features). But because Android Studio has all the Android dependency bundled with it I decided not to install IntelliJ IDEA and rather went with Android Studio 1.0.
I am getting plethora of errors with Gradle which I am not even adding in my project while trying to start one, neither can I find a way to remove Gradle from my project. My Android Studi 1.0 installation is standard installation on Windows 7 and I can see gradle 2.2.1 in plugins folder but it just doesn't work. I expected everything to work out of the box as its just a dummy app with default UI components selected from SDK while creating the project.
Is there a way to simple app building experience in Android Studio without dealing with Gradle and its dependency and set-up?
Android Studio uses Gradle as its build engine. There is no way to use one without the other. That said, the "New Project" wizard should get you up and running quickly.
I am trying to run my first android application in Android studio. Application created successfully with new project vizard but cant run that as getting this error--
Invalid App-Engine SDK Path
Please help
All answers about disabling the plugin are incorrect.
You need to execute ./gradlew appengineDownloadSdk in the root of your project. Alternatively you can execute the task via the gradle sidebar in Android Studio.
This task will create the folders given the current versions in your build.gradle file. You have to run this when you update versions in your dependency list.
One solution is to disable the Google Cloud Tools for Android Studio plugin.
In Android Studio, click on:
File > Settings
Then click on Plugins (on the left), and uncheck "Google Cloud Tools For Android Studio". Then Apply.
It asks you to restart Android Studio. Click on Restart and it will work now.
Seems like this is the problem--
exception in plugin Google cloud tools for android studio
After disabling this plugin its working now!!
In other scenario if you want to setup Google app engine this might help
https://stackoverflow.com/a/20986031/472336
I've created folder
c:\Users\[user_name]\.gradle\appengine-sdk\appengine-java-sdk-1.9.18\
And copy sdk that download there
https://cloud.google.com/appengine/downloads
So currently project compiles and works for me
I'm trying to attach the android source code to my gradle project using Android Studio. The problem is that the SDK tab does not appear if you are using a gradle project and I can not attach the source code. I tried with version 0.4.3 and does not work.
Any idea or work arround?
EDIT: I've attach a capture with my project structure without sdk option.
Thank you,
The short explanation is that Android Studio has added some functionality to try to automatically manage IntelliJ SDKs; if you give it a JDK path and Android SDK path in Project Structure > Android SDK, it will automatically create a Java SDK and Android SDKs for each API level you have installed in your Android SDK. The problem is, if it creates an Android SDK for an API level that doesn't have the sources downloaded, if you go into SDK Manager later and download the source, it doesn't pick that up and update its SDK. I've filed https://code.google.com/p/android/issues/detail?id=65230 for this. In that bug I list two workarounds, which I'll explain here:
You can actually get at the SDKs panel you're looking for. We hide it if you have a Gradle-based project open since we want Gradle-based project users to not have to worry about it, but since we also support IntelliJ-style projects that use its internal builder, it's still possible to access it so those users will be able to make their projects work. You can get at this panel if you access Project Structure without a project open. To do so:
Close all open projects
From the Welcome to Android Studio screen, go to Configure > Project Defaults > Project Structure > SDKs
Choose the appropriate Android API SDK that you installed source for, and go to Sourcepath panel
Press the + button, and choose the source directory.
If you're having trouble following that, let me know and I can post screenshots.
Another approach would be to blow away all of Android Studio's auto-created SDKs and let it rebuild them. To do that
Exit Android Studio
Delete the jdk.table.xml file, which on MacOS will be in your home directory under Library/Preferences/AndroidStudioPreview
Relaunch Android Studio
Go into Project Structure (either from the Welcome screen or from a project), and choose the Android SDK tab
Make sure the Android SDK location and JDK location are correct.
Check the compileSdkVersion in your build.gradle file and download the "Source for Android SDK" for respective API from Android SDK Manager.
SDK manager icon will be available on Android Studio tool bar.
Nothing else needs to be done.
Note : Source Code for Android SDK is only available for and after API 13 .