android-studio-3.3

Enable Annotation processing for existing projects Android studio 3.3

China☆狼群 提交于 2021-01-28 12:05:28
问题 I am using Android studio 3.3 and trying to use Dagger2 in my project. However, the annotation processing does not work in it and the annotation classes are not generated. I am add the library as follows to my gradle file. implementation 'com.google.dagger:dagger:2.21' annotationProcessor 'com.google.dagger:dagger-compiler:2.21' I have also specified the annotationProcessorOptions javaCompileOptions { annotationProcessorOptions { includeCompileClasspath true } } What have I tried: Closing the

Intel HAXM is required to run this AVD

一个人想着一个人 提交于 2020-08-05 08:04:40
问题 I have installed Android Studio 3.3.1 and everything worked perfectly until I closed it. When I try to open a run again my project it says: Intel HAXM is required to run this AVD Unknown error, What should I do? 回答1: In my case, I installed software which is required to enable Hyper-V . If you also face it, check it. On Window (I mean I config on Window, not Ubuntu or MacOsX), it's in "Turn Windows feature on or off" . Uncheck Hyper-V and restart your computer. 回答2: When Android Studio is

Intel HAXM is required to run this AVD

♀尐吖头ヾ 提交于 2020-08-05 08:04:26
问题 I have installed Android Studio 3.3.1 and everything worked perfectly until I closed it. When I try to open a run again my project it says: Intel HAXM is required to run this AVD Unknown error, What should I do? 回答1: In my case, I installed software which is required to enable Hyper-V . If you also face it, check it. On Window (I mean I config on Window, not Ubuntu or MacOsX), it's in "Turn Windows feature on or off" . Uncheck Hyper-V and restart your computer. 回答2: When Android Studio is

Default Activity Not Found - Bug in Android Studio 3.3

…衆ロ難τιáo~ 提交于 2020-01-15 06:38:32
问题 When I create a new project in Android Studio 3.3, it shows an error at Run -> Edit Configurations saying default activity is not found. <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <TextView

Android Studio : 407 Proxy Authentication Required

微笑、不失礼 提交于 2019-12-23 22:24:51
问题 I have installed Android Studio Preview version since the stable IDE version does not support the JetPack that is being used in my application. But I am facing proxy issue while syncing the project, ERROR: Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom'. Received status code 407 from server: Proxy Authentication Required Enable Gradle 'offline mode' and sync project I have set proxy using both from Android studio settings and

Android Studio could not find or load main class of “Scratch” file

偶尔善良 提交于 2019-12-21 07:14:03
问题 Update : Below problem is remained until Android Studio 3.4.2 . I use Android Studio 3.3 and created a scratch file ( File > new > Scratch File > Java ). The IDE created scratch.java in ~/.AndroidStudio3.3/config/scratches : class Scratch { public static void main(String[] args) { } } But when I run that scratch file ( by pressing green button near to the class name or main method), I get this error: Error: Could not find or load main class Scratch I think that IDE does not make Scratch.class

NoSuchMethodError for com/google/android/exoplayer2/upstream/DefaultAllocator

前提是你 提交于 2019-12-11 21:30:47
问题 I am using com.amazon.android:exoplayer-ui:r2.5.4 in my project I just upgraded IDE to Android Studio 3.3.1. in my build.gradle I have below code for compile compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } While trying to build, I get this error: Task :app:mergeExtDexDebug FAILED AGPBI: {"kind":"error","text":"Default interface methods are only supported starting with Android N (--min-api 24): void com.google.android.exoplayer2.Player

Android Studio 3.3, Layout Preview, Zoom In, Zoom Out and Zoom to Fit Screen buttons not working

人走茶凉 提交于 2019-12-10 09:24:39
问题 When I open an activity layout on Layout Preview, I want to zoom in but when I click to zoom in button nothing happens. Also, zoom out and zoom to fit screen buttons not working. What I tried: Updated Android Studio to version 3.3. Done all Android SDK updates. Updated NDK. Clean Project. Rebuild Project. Create a new project. How can I fix this problem? Edit: I think I found the solution. If your zoom level on 24%, zoom in and zoom out buttons not working. To fix the bug, lower layout

Crashlytics found an invalid API key: null. after updated com.google.gms:google-services:4.1.0

北战南征 提交于 2019-12-04 08:20:54
问题 I had this bug after updated from com.google.gms:google-services:4.0.1 to com.google.gms:google-services:4.1.0 Crashlytics found an invalid API key: null. Check the Crashlytics plugin to make sure that the application has been added successfully! Contact support@fabric.io for assistance. For Java projects, they hadn't this problem. I tried to invalidate cache and restart but not resolve. I'm using: Android Studio 3.3 Canary 8 dependencies { classpath 'com.android.tools.build:gradle:3.3.0

Android Studio could not find or load main class of “Scratch” file

孤人 提交于 2019-12-04 01:38:16
Update : Below problem is remained until Android Studio 3.4.2 . I use Android Studio 3.3 and created a scratch file ( File > new > Scratch File > Java ). The IDE created scratch.java in ~/.AndroidStudio3.3/config/scratches : class Scratch { public static void main(String[] args) { } } But when I run that scratch file ( by pressing green button near to the class name or main method), I get this error: Error: Could not find or load main class Scratch I think that IDE does not make Scratch.class and so Java cannot find it. Is there a way for solving this problem and running scratch files from IDE