Tag: android-studio

How does Android Studio validate XML for the preferences screen?

I have this in my XML file for my preferences screen, based on other SO answers: <PreferenceScreen android:title=”@string/preference_title” android:summary=”@string/preference_summary”> <intent android:action=”android.intent.action.VIEW” android:data=”mailto:”> <extra android:name=”android.intent.extra.SUBJECT” android:value=”@string/email_subject”/> <extra android:name=”android.intent.extra.TEXT” android:value=”@string/email_body”/> </intent> </PreferenceScreen> Android Studio is flagging the “extra” elements as “not allowed here.” I don’t really understand how it is validating the XML at all because there […]

Error:Execution failed for task ':lib:compileReleaseAidl'. > Executor Singleton not started

When I import one project into my Android Studio from Github, this happens. How to fix it? Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugTestSources, :lib:generateDebugSources, :lib:generateDebugTestSources] :app:preBuild :app:preDebugBuild :app:checkDebugManifest :app:preReleaseBuild :lib:compileLint :lib:copyReleaseLint UP-TO-DATE :lib:preBuild :lib:preReleaseBuild :lib:checkReleaseManifest :lib:preDebugBuild :lib:preDebugTestBuild :lib:prepareComAndroidSupportAppcompatV72102Library UP-TO-DATE :lib:prepareComAndroidSupportCardviewV72102Library UP-TO-DATE :lib:prepareComAndroidSupportSupportV42102Library UP-TO-DATE :lib:prepareReleaseDependencies :lib:compileReleaseAidl FAILED Error:Execution failed for task ‘:lib:compileReleaseAidl’. > Executor Singleton not started

How to set my gradle for final release apk

Earlier my gradle was like this: WHICH IS OFCOURSE INCORRECT apply plugin: ‘android’ android { compileSdkVersion 19 buildToolsVersion ‘19.0.3’ defaultConfig { minSdkVersion 11 targetSdkVersion 19 versionCode 1 versionName “1.0” } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’ } } } dependencies { compile ‘com.android.support:gridlayout-v7:19.0.1’ compile ‘com.android.support:appcompat-v7:+’ compile fileTree(dir: ‘libs’, include: [‘*.jar’]) compile ‘com.android.support:support-v4:+’ […]

Android Studio exception raised during rendering

exception raised during rendering android.graphics.drawable.VectorDrawable_Delegate.nDraw(JJJLandroid/graphics/Rect;ZZ)I How can i fix it? I dont want to reinstall it. I update AS and this exception was raised.

Android Studio not rendering layout

I have started a new android studio project and on opening of the main activity, the design view shows this error and does not show the layout on the emulator: org.jetbrains.android.uipreview.RenderingException: Failed to load the LayoutLib: com/android/layoutlib/bridge/Bridge : Unsupported major.minor version 52.0 at org.jetbrains.android.uipreview.LayoutLibraryLoader.load(LayoutLibraryLoader.java:90) at org.jetbrains.android.sdk.AndroidTargetData.getLayoutLibrary(AndroidTargetData.java:180) at com.android.tools.idea.rendering.RenderService.createTask(RenderService.java:166) at com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$6.run(AndroidDesignerEditorPanel.java:475) at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320) at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310) at […]

Android studio uploading old apk when changing project.archivesBaseName

I have configured build.gradle so it increases version code in version.properties each time I create a release build. I also use version code for the apk filename. However Android studio seems to ignore the version changes so when I run debug build from the ide then assemble Release build using console (which increases the version […]

Ignore spelling warning in Android studio for specific files

I want to ignore spellcheck warnings for specific files only in Android Studio. I have tried this out but this seems to be equivalent to SuppressLint instead of SuppressWarning. http://developer.android.com/tools/debugging/improving-w-lint.html Here’s an example of something like what I want to do <?xml version=”1.0″ encoding=”utf-8″?> <lint> <issue id=”SpellCheckingInspection” severity=”typo”> <ignore path=”app/src/main/res/values/local_values.xml” /> <ignore path=”app/src/main/res/values/strings.xml” /> <ignore […]

Integrate Visual Studio online Git Repository to Android Studio 1.0.2

I am using Visual Studio online for my development process. And I want to integrate my Android Studio 1.0.2 codes in it. However, as I know Android Studio has no TFS Plugin. That’s why, I want to use Git for source control. How can I integrate Visual Studio Online Git repository to Android Studio 1.0.2. […]

Attempt to invoke interface method 'boolean java.util.List.add(java.lang.Object)' on a null object reference

This question already has an answer here: What is a NullPointerException, and how do I fix it? 12 answers

Android Studio local path doesn't exist

I imported my Eclipse project into Android using Gradle. At first I had problems with R.java but I resolved them by adding ‘gen’ folder as sources in Project Settings. However, even though Android Studio doesn’t show any errors any more, when I’m trying to deploy the project onto my Android device, I get the error: […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.