android-studio-3.0

How to fix 'Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant:'

久未见 提交于 2020-03-22 07:05:14
问题 I am trying to run a selected build variant but giving me following error in Run tab, Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: madhyapradesh-debug So kindly suggest the solution to it. 回答1: For me the solution was apparently to update the Gradle plugin... 回答2: Ensure that your have set applicationId "com.example.myapp" in your build.gradle android { ... defaultConfig { applicationId "com.example.myapp"

Installation failed since app's minSdkVersion is newer than device's API level

喜夏-厌秋 提交于 2020-03-19 05:10:40
问题 Here is my gradle settings. ext { android_compile_version = 26 android_version = '26.0.1' android_min_sdk_version =15 appcompat_library_version = '25.2.0' support_library_version = '25.2.0' gms_library_version = '11.0.4' } this is define in my project.gradle file and apply plugin: 'com.android.application' android { compileSdkVersion android_compile_version buildToolsVersion android_version defaultConfig { applicationId "com.xxasda.stickman" minSdkVersion android_min_sdk_version

Android Studio 3.0 Emulator: Could not lock voice for audioInputDeviceIOProc

℡╲_俬逩灬. 提交于 2020-03-13 04:17:32
问题 I seem to get this error while building my app on my emulator. I do not know what it the cause of it and it seems affecting my app which causes it my app to crash on the emulator. Emulator: coreaudio: Could not lock voice for audioInputDeviceIOProc Emulator: Reason: Invalid argument 回答1: Audio input in the Android emulator is not super reliable right now. Until it's fixed you can disable it with these steps: Launch “AVD Manager” On the crashing image, click the downward facing icon in the

Android Studio 3.0 Emulator: Could not lock voice for audioInputDeviceIOProc

夙愿已清 提交于 2020-03-13 04:14:22
问题 I seem to get this error while building my app on my emulator. I do not know what it the cause of it and it seems affecting my app which causes it my app to crash on the emulator. Emulator: coreaudio: Could not lock voice for audioInputDeviceIOProc Emulator: Reason: Invalid argument 回答1: Audio input in the Android emulator is not super reliable right now. Until it's fixed you can disable it with these steps: Launch “AVD Manager” On the crashing image, click the downward facing icon in the

Error : Ambiguous method call. Both findViewById (int) in AppCompactActivity and Activity

孤街醉人 提交于 2020-02-18 05:40:14
问题 I am getting the error: "Ambiguous method call" on initializing Toolbar using Android Studio 3.0 RC1. I have extended my Activity with AppCompatActivity and compiling my application using 'compileSdkVersion 26'. Attaching a screenshot of the error. 回答1: If you recently updated your project to API, Try doing File -> Invalidate Caches / Restart then File -> Sync Project with Gradle Files this resolve for me. 回答2: Upgrade to appcompat 27 solved this for me 回答3: You have import android.support.v7

Error : Ambiguous method call. Both findViewById (int) in AppCompactActivity and Activity

回眸只為那壹抹淺笑 提交于 2020-02-18 05:40:13
问题 I am getting the error: "Ambiguous method call" on initializing Toolbar using Android Studio 3.0 RC1. I have extended my Activity with AppCompatActivity and compiling my application using 'compileSdkVersion 26'. Attaching a screenshot of the error. 回答1: If you recently updated your project to API, Try doing File -> Invalidate Caches / Restart then File -> Sync Project with Gradle Files this resolve for me. 回答2: Upgrade to appcompat 27 solved this for me 回答3: You have import android.support.v7

Release version doesn't see Application class after installing the app

怎甘沉沦 提交于 2020-01-24 21:58:52
问题 In a debug version app works fine. But when I generate sign apk and install this, after open app - it immediately crashes due to a logcat error: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mypackage.AppClass" on path: DexPathList[[zip file "/data/app/com.mypackage-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]. I use AppClass to extends MultiDexApplication and I've got there some functions also. I have declared this class correctly in a manifest.

Release version doesn't see Application class after installing the app

扶醉桌前 提交于 2020-01-24 21:58:05
问题 In a debug version app works fine. But when I generate sign apk and install this, after open app - it immediately crashes due to a logcat error: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mypackage.AppClass" on path: DexPathList[[zip file "/data/app/com.mypackage-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]. I use AppClass to extends MultiDexApplication and I've got there some functions also. I have declared this class correctly in a manifest.

Android Studio Keyboard shortcut for switching project Mac OS using android studio 3.5.3

随声附和 提交于 2020-01-24 18:24:04
问题 Hi i am using mac OS anyone has any idea keyboard shortcuts how to switch projects I am using Android 3.5.3 I am using Cmd + (Cmd + Backtick)` it seems not working 来源: https://stackoverflow.com/questions/59475284/android-studio-keyboard-shortcut-for-switching-project-mac-os-using-android-stud

android studio 3.0 stuck at “building gradle project info”

被刻印的时光 ゝ 提交于 2020-01-23 01:20:10
问题 Today I was going to make a new project in Android Studio. The Android Studio on my computer is updated to 3.0. When I was creating a new project and finished the procedure of the settings, the AS stuck at "Building Gradle Project info". I have met this situation several times in AS 2.3.3, and I solved them by modifying the gradle distributionUrl. But this time, it doesn't work. I hope someone can give me a hand. Thanks anyway! 回答1: Because downloading Gradle takes a lot of time when your