android-studio-3.0

AndroidStudio 3.0: Error:Unable to resolve dependency for ':app@dev/compileClasspath': Could not resolve project :common

*爱你&永不变心* 提交于 2019-12-23 05:17:33
问题 Android Studio 3.0 I have 3 build types: " release " and " dev " project/build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } settings.gradle include ':app', ':common' app/build.gradle dependencies {

Android Studio 3.0 submodule compile failed

六眼飞鱼酱① 提交于 2019-12-22 10:54:08
问题 App level build gradle dependencies devCompile project(path: ':mymodule', configuration: 'devRelease') proCompile project(path: ':mymodule', configuration: 'proRelease') qaCompile project(path: ':mymodule', configuration: 'qaRelease') offlineCompile project(path: ':mymodule', configuration: 'offlineRelease') mentioned publishNonDefault true flavorDimensions "default" I have tried This accepted answer but didn't work. Update: Look at the library gradle flavor that I want to compile. I have the

Getting error building App: app:transformDexArchiveWithDexMergerForDebug

青春壹個敷衍的年華 提交于 2019-12-22 06:02:24
问题 I get the following error while building the app in android studio, why this is happening? Is it related to my proguard rules or dexguard rules? when I add " multiDexEnabled true" in build.gradle file, I get below error: Error:Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'. > com.android.build.api.transform.TransformException: java.nio.file.NoSuchFileException: D:\android\app\build\intermediates\multi-dex\debug\maindexlist.txt But, when I add " multiDexEnabled true"

After updating android studio 3.0 unable to build the project

一世执手 提交于 2019-12-21 20:37:55
问题 android.enableAapt2=false added at the bottom of gradle.properties gradle.properties http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true android.enableAapt2=false build.gradle Updated the gradle file after updating sdk tool to 26 version sdk tool is upto date apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion '26.0.2' defaultConfig { applicationId "com.example.madhural.myapplication"

ANDROID STUDIO 3.0 upgrade : Error:Could not resolve all files for configuration ':app:xxxxxxxDebugCompileClasspath'

家住魔仙堡 提交于 2019-12-20 17:39:14
问题 I found this warning after upgrading the latest android studio stable version Error:Could not resolve all files for configuration ':app:xxxxxxxDebugCompileClasspath'. Failed to transform file 'commons-lang-2.4.jar' to match attributes {artifactType=android-classes} using transform JarTransform Transform output file xxxxxxx/xxxxxxx/xxxxxxx/app/commons-lang-2.4.jar does not exist. here is gradle and gradle wrapper versions : gradle : classpath 'com.android.tools.build:gradle:3.0.0' and gradle

Button onClick attribute is none if activity written in Kotlin

£可爱£侵袭症+ 提交于 2019-12-20 16:32:19
问题 Follow this tutorial: Android - Start Another Activity if I made MainActivity.java button OnClick attribute has the sendMessage() method. But if I made MainActivity.kt button OnClick attribute has nothing to show, just a none . Is this an Android Studio 3 bug or I missed something for Kotlin? Java mainActivity: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

Button onClick attribute is none if activity written in Kotlin

一笑奈何 提交于 2019-12-20 16:29:54
问题 Follow this tutorial: Android - Start Another Activity if I made MainActivity.java button OnClick attribute has the sendMessage() method. But if I made MainActivity.kt button OnClick attribute has nothing to show, just a none . Is this an Android Studio 3 bug or I missed something for Kotlin? Java mainActivity: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

Can't launch AVD on macOS 10.13

寵の児 提交于 2019-12-20 10:59:48
问题 I created some AVDs in Android studio 3.0, but I can't launch them. I used the following command to launch them: ./emulator @Nexus_5X_API_17 logs: emulator: WARNING: encryption is off Hax is enabled Hax ram_size 0x60000000 Failed to open vm 3 Failed to create HAX VM No accelerator found. failed to initialize HAX: Invalid argument And when I reinstalled "Intel x86 Emulator Accelerator(HAXM installer)", the logs: HAXM silent installation only supports macOS from 10.8 to 10.12 ! I don't know if

Can't launch AVD on macOS 10.13

半城伤御伤魂 提交于 2019-12-20 10:59:13
问题 I created some AVDs in Android studio 3.0, but I can't launch them. I used the following command to launch them: ./emulator @Nexus_5X_API_17 logs: emulator: WARNING: encryption is off Hax is enabled Hax ram_size 0x60000000 Failed to open vm 3 Failed to create HAX VM No accelerator found. failed to initialize HAX: Invalid argument And when I reinstalled "Intel x86 Emulator Accelerator(HAXM installer)", the logs: HAXM silent installation only supports macOS from 10.8 to 10.12 ! I don't know if

Android Studio 3.0 annotationProcessor [duplicate]

荒凉一梦 提交于 2019-12-20 10:33:36
问题 This question already has answers here : Incompatible plugins for android-apt after upgrading to Android Studio 2.3 (5 answers) Closed 2 years ago . I get the following error after I try to build my project: Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead. I tried to add annotationProcessor '.....' after every implementation but no success to get rid of the error. This happens after upgrading android studio to the