android-studio-3.0

Why is Android Studio 3.0.0 setting FLAG_TEST_ONLY on APKs?

自作多情 提交于 2019-12-01 09:42:16
I have arrived at Android Studio 3.0.0 (from the stable channel) via 3.0.0-rcX (from the Canary channel). When I start a brand new app and build it, the following code (inside the app) shows that the FLAG_TEST_ONLY flag is set. Log.e(TAG, "ApplicationInfo: " + (getApplicationInfo().flags & ApplicationInfo.FLAG_TEST_ONLY)); 10-31 09:54:05.226 16129-16129/com.example.dummy E/MainActivity: ApplicationInfo: 256 The app's manifest is: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.dummy"> <application android

Why is Android Studio 3.0.0 setting FLAG_TEST_ONLY on APKs?

丶灬走出姿态 提交于 2019-12-01 06:55:15
问题 I have arrived at Android Studio 3.0.0 (from the stable channel) via 3.0.0-rcX (from the Canary channel). When I start a brand new app and build it, the following code (inside the app) shows that the FLAG_TEST_ONLY flag is set. Log.e(TAG, "ApplicationInfo: " + (getApplicationInfo().flags & ApplicationInfo.FLAG_TEST_ONLY)); 10-31 09:54:05.226 16129-16129/com.example.dummy E/MainActivity: ApplicationInfo: 256 The app's manifest is: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android=

How to get dependencies from a gradle plugin using “api” or “implementation” directives

杀马特。学长 韩版系。学妹 提交于 2019-12-01 06:40:26
Background: Running Android Studio 3.0-beta7 and trying to get a javadoc task to work for an Android library (the fact that this is not available as a ready-made task in the first place is really strange), and I managed to tweak an answer to a different question for my needs, ending up with this code ( https://stackoverflow.com/a/46810617/1226020 ): task javadoc(type: Javadoc) { failOnError false source = android.sourceSets.main.java.srcDirs // Also add the generated R class to avoid errors... // TODO: debug is hard-coded source += "$buildDir/generated/source/r/debug/" // ... but exclude the R

How to get dependencies from a gradle plugin using “api” or “implementation” directives

試著忘記壹切 提交于 2019-12-01 05:22:18
问题 Background: Running Android Studio 3.0-beta7 and trying to get a javadoc task to work for an Android library (the fact that this is not available as a ready-made task in the first place is really strange), and I managed to tweak an answer to a different question for my needs, ending up with this code (https://stackoverflow.com/a/46810617/1226020): task javadoc(type: Javadoc) { failOnError false source = android.sourceSets.main.java.srcDirs // Also add the generated R class to avoid errors...

Android Studio 3 + Gradle 4.0 + shrinkResources + libraryProject = Unable to find a matching configuration in project

蓝咒 提交于 2019-12-01 03:19:44
I've problems to migrate my project to the newest Gradle 4.0 + Android Studio 3 version, which gives me all kind of errors. Little by little I managed to sort them all out except this one. Could not resolve all dependencies for configuration ':app:forGoogleCoverageRuntimeClasspath'. > Unable to find a matching configuration in project :mylibrary: - Configuration 'debugApiElements': - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'AndroidTypeAttr{name=Aar}' and found compatible value 'AndroidTypeAttr{name=Aar}'. - Required com.android.build.gradle.internal.dependency

Android Studio issue with HAXM

自作多情 提交于 2019-12-01 03:08:30
I am trying android studio 3.1 canary 5 release And when i created an avd of nexus 5 api 27 getting issue/warning reported in macintosh 10.13.2 After looking over to issue as mentioned to install HAXM of >=6.2.1 7:21 PM Emulator: WARNING: HAXM 6.1.2 is installed. Please install HAXM >= 6.2.1 to fix compatibility issues on Mac. Tried below intel site but couldn't find updated version above 6.2.1 https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm Help is required on same to find updated version for mac. I had the same problem. Every time I ran the

Gradle could not find dependency com.google.android.gms:play-services

家住魔仙堡 提交于 2019-12-01 02:22:16
问题 I have a problem since I upgraded my Android Studio to 3.0.0 : I cannot find com.google.android.gms:play-services anymore! After adding this dependency, when I try to sync my project I get this message : Failed to resolve: com.google.android.gms:play-services-games:11.4.2 I can click on "Install repository and sync project" but when I do, I get this message : Could not find dependency "com.google.android.gms:play-services-games:11.4.2" I tried to search, but the only solutions I found was to

Error:(1, 0) Plugin with id 'kotlin-android-extensions' not found

和自甴很熟 提交于 2019-12-01 02:09:31
apply plugin: 'kotlin-android-extensions'. When i add this extensions in android studio preview, give me this error "Error:(1, 0) Plugin with id 'kotlin-android-extensions' not found.". My build gradle apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.example.mohamed_elbaz.myapplication" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(

DexArchiveMergerException: Unable to merge dex

淺唱寂寞╮ 提交于 2019-12-01 00:31:25
Just after updating Android studio 3.0 yesterday from 2.3.3 version, I am facing issue related to DexMergerException. Someone else also posted question-related to this . But in this question, I want to analyze the stack trace to find the related solution(since i am newbiew here..). I am unable to resolve it even after excluding group that might be using it. Since I am not aware of which component colliding with HttpCore so I'd use this code to exclude httpCore: implementation ('com.android.volley:volley:1.0.0') { exclude group: 'org.apache.httpcomponents' } Please check the Terminal logcat

Timeout Error when connecting localhost api with Android Studio on Real devices through USB

我只是一个虾纸丫 提交于 2019-11-30 23:45:59
问题 I am using Android Studio version 3 on Window 8.1. There is XAMPP installed to host php api on localhost. I am trying to access the localhost api from Android Studio. In the host name, I used IPv4 Address. When I access it from Android Version 3, using Emulator. There is no problem at all. I am using Volley for api calls. When I try to access using Real device through USB...I always get timeout error. I am using Real device because my RAM is very low. Please let me know if you need more info.