android-studio-3.0

Android Studio Preview 3.0 - Application installation failed when running instant app

限于喜欢 提交于 2019-12-08 16:38:23
问题 I am new to running instant app. I have created a new "Hello World" project with instant app support, according to android developer documents. But, when running "instantapp", the following error occurs: I would appreciate it if anyone could help. 回答1: Note: There is a known issue running Instant Apps on the emulator image that includes the Google Play Store which will give this same error. For now, please use the emulator without Play Store. Google Play Services giving statusCode=API

Android Studio 3 difference between library module and feature module

杀马特。学长 韩版系。学妹 提交于 2019-12-08 15:52:15
问题 In Android Studio 3 there are at least two new module types. First is Instant app module and the second one is feature module . With Instant App module it's quite obvious but feature module from my perspective is the same as the library module . So what is the real difference between library and feature modules and when I should use library module and when feature module ? 回答1: I would complete Marcin Orlowski scheme like this. You could picture library module in the same way as dependencies

Issue performing lint command in Android Studio

耗尽温柔 提交于 2019-12-08 06:45:28
问题 I am currently working on a android application which has CI/CD implementation. Everything was working as expected for gradle version 2.0.1. I was able to run ./gradlew clean build command but recently I have upgraded Application to gradle version 3.4.1. I am able to run the application on Android Device and Android Emulator. However When I am running the same command in terminal build process is getting haulted while doing lint analysis. I was using android studio version 3.0.1 with gradle

Gradle error transformDexArchiveWithDexMergerForDebug when running application

时光总嘲笑我的痴心妄想 提交于 2019-12-07 18:04:45
问题 My application builds fine and I can create a signed apk but when I try to actually debug it on my device I get this gradle error Error:08:38:07.975 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 08:38:07.975 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 08:38:07.976 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 08:38:07.976 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What

Resources ids not updating in Android Studio 3.0

安稳与你 提交于 2019-12-07 11:14:39
问题 I recently updated to Android Studio 3.0 and noticed that when I for example add any android:id, or create new drawable, or basically any resource, Android Studio does not update it in project until I build application. Every resource I create in xml, in class is marked as red and standard "Cannot resolve symbol ..." is shown. But surprisingly if you try to go to declaration, it correctly goes to the resource. Is there any option for this not to happen? It's very irritating. Edit: It's still

Android Studio “IDE error occured” on create new Activity

随声附和 提交于 2019-12-07 04:56:24
问题 (See update at the bottom) Since Android Studio updated itself to v3.0, I can't make a new Activity.. I get this error reporting dialog showing 2 errors. I tried with a different project, tried cleaning the project, resyncing gradle, restarting my computer, uninstalling/reinstalling Android Studio, tried following Google's project Gradle migration video but nothing changes and I can't work anymore... Any ideas? I didn't click "disable plugin" to disable Android Support as I don't want to

expected reference but got (raw string) @+android:style/Animation.Translucent

…衆ロ難τιáo~ 提交于 2019-12-06 19:55:27
when I update the as version from 2.3 to 3.0 and compile the same project,there are some errors.How to solve the problem?thks. AGPBI:{ "kind":"error", "text":"error: expected reference but got (raw string) @+android:style/Animation.Translucent.", "sources":[ { "file":"/home/.../android/.../app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml", "position":{ "startLine":533 } } ], "original":"", "tool":"AAPT" }AGPBI:{ "kind":"error", "text":"error: expected reference but got (raw string) @+android:style/Animation.Translucent.", "sources":[ { "file":"/home/...

How to Setup Jetpack Navigation with material.BottomNavigationView

坚强是说给别人听的谎言 提交于 2019-12-06 19:46:19
问题 I am unable to setup Navigation component with com.google.android.material.bottomnavigation.BottomNavigationView it is giving an error. Here is the code that I am trying to use // Setup bottom navigation view NavigationUI.setupWithNavController( bottom_navigation_view, findNavController(R.id.main_nav_host_fragment) ) when I open the NavigationUI class, I note that it just accept the old android.support.design.widget.BottomNavigationView but I want to use the new one com.google.android

Android studio show this error during run. Error: Program type already present: androidx.concurrent.futures.DirectExecutor

两盒软妹~` 提交于 2019-12-06 11:05:44
问题 im tried to run my android app program through / using android studio version 3.1.4 and i have no idea what is happen while im run my program its keep showing this error Error: Program type already present: androidx.concurrent.futures.DirectExecutor I'd tried quick googling its answer but yet still not found answer related to my issues. As per I'd found those issues related to class name conflict? Correct me if I'm wrong. Below this is my build.gradle apply plugin: 'com.android.application'

Android Studio 3.0 and gradle upgrade - base.apk code is missing while creating apk

∥☆過路亽.° 提交于 2019-12-06 08:02:41
问题 I tried to upgrade my gradle from 2.3.3 to 3.0.0 in Android Studio 3.0 (stable). Project builds fine but I get issue while creating/installing APK: Failure [INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/xxxx Package /data/app/xxxx/base.apk code is missing] $ adb shell pm uninstall xxxx Unknown failure (at android.os.Binder.execTransact(Binder.java:674)) Error while Installing APK If I build standalone APK and install it directly on device/emulator I get that it is