android-studio-4.0

After updating Android Studio from 3.6 to 4.0, close project not works

偶尔善良 提交于 2020-08-27 03:46:56
问题 The same question as this one. I have two android projects on two windows, when I close one project by clicking [x] icon on my mac, the project closed but the window exists with a blank screen. My Android Studio Version info: Android Studio 4.0 Build #AI-193.6911.18.40.6514223, built on May 20, 2020 Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.15.4 GC: ParNew, ConcurrentMarkSweep Memory: 1979M Cores: 12 Registry: ide.new

Could not find com.android.tools.build:aapt2:4.0.0-6051327 [duplicate]

限于喜欢 提交于 2020-08-24 03:35:29
问题 This question already has answers here : Could not find com.android.tools.build:aapt2:3.2.0 (13 answers) Closed 2 months ago . when I run a java file in android studio, this error happens: Could not find com.android.tools.build:aapt2:4.0.0-6051327. Searched in the following locations: - https://jcenter.bintray.com/com/android/tools/build/aapt2/4.0.0-6051327/aapt2-4.0.0-6051327.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM'

Unresolved class name proguard-rules Android Studio 4.0

倾然丶 夕夏残阳落幕 提交于 2020-07-15 10:05:47
问题 When I update to Android Studio 4.0 proguard-rules it shows warning Unresolved class name . Below is example but I sure it still waring the exist class in my project. -keep class com.squareup.haha.** { *; } -keep class com.squareup.leakcanary.** { *; } If I change from ** to * this warning is gone. -keep class com.squareup.haha.* { *; } -keep class com.squareup.leakcanary.* { *; } Does anyone get this? Should I ignore this warning or it's bug of Android Studio 4.0? Update : I find it's bug,

Exception raised during rendering: addView(View, LayoutParams) is not supported in AdapterView (Details) Tip: Try to refresh the layout

大兔子大兔子 提交于 2020-07-03 17:29:50
问题 here is screenshots of my xml(activity) file + the preview that stays empty... https://ibb.co/3d9BjYz https://ibb.co/3CvTJKh 回答1: Please read AdapterView explanation in Android Documentation. Here is the explanation: "An AdapterView is a view whose children are determined by an Adapter." You didn't share your Java code, but you need an Adapter to bind data and view. Please check getView method in your Adapter. Your problem should be related with the parent view in your Adapter class. 来源:

Exception raised during rendering: addView(View, LayoutParams) is not supported in AdapterView (Details) Tip: Try to refresh the layout

本秂侑毒 提交于 2020-07-03 17:28:09
问题 here is screenshots of my xml(activity) file + the preview that stays empty... https://ibb.co/3d9BjYz https://ibb.co/3CvTJKh 回答1: Please read AdapterView explanation in Android Documentation. Here is the explanation: "An AdapterView is a view whose children are determined by an Adapter." You didn't share your Java code, but you need an Adapter to bind data and view. Please check getView method in your Adapter. Your problem should be related with the parent view in your Adapter class. 来源:

Gradle sync failed on android studio 4.0 [duplicate]

瘦欲@ 提交于 2020-06-27 16:38:21
问题 This question already has answers here : Ionic Capacitor app give me lots of errors (5 answers) Closed 25 days ago . After upgrading my android project to classpath 'com.android.tools.build:gradle:4.0.0' and distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip I found this error Gradle sync failed: Cause: org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext my project details is: compileSdkVersion 29 ndkVersion "21.1.6352462" minSdkVersion 21