android-studio-3.0

java.lang.UnsupportedOperationException: Can't convert value at index 5 to color: type=0x5

£可爱£侵袭症+ 提交于 2019-12-03 04:40:49
My app is crashing after updating to Android Studio 3 RC1 ( Gradle 4, Android Gradle plugin 3 RC2). This is the error I am having: java.lang.RuntimeException: Unable to start activity ComponentInfo{*****}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.viewpagerindicator.CirclePageIndicator at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H

Button onClick attribute is none if activity written in Kotlin

会有一股神秘感。 提交于 2019-12-03 04:31:00
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.activity_main); } /** Called when the user taps the Send button */ public void sendMessage(View view) { // Do

Incompatible Bitbucket plugin 1.2.1 for Android Studio 2.0/2.1/3.0+

青春壹個敷衍的年華 提交于 2019-12-03 04:25:26
问题 I have updated version of my Android Studio to 2.0 and is facing incompatibility issue of bitbucket plugin 1.2.1 when loading Android Studio. Android Studio's Event log is saying: "Plugin Error Problems found loading plugins: Following plugins are incompatible with current IDE build: Bitbucket" Can anyone help me regarding? Thanks in advance. 回答1: Try use jetbrains bitbucket connector, open this link and download the package: https://drive.google.com/open?id=1L0bEhoCIrV9Jced1fqdYscI34wwuKyvQ

DexGuard integration in Android Studio 3.0

痞子三分冷 提交于 2019-12-03 03:37:35
I have upgraded my Android project to use the latest Android Studio 3.0 features. Since then, I am getting the following warning message on each Gradle sync: Warning:One of the plugins you are using supports Java 8 language features. To try the support built into the Android plugin, remove the following from your build.gradle: apply plugin: 'dexguard' To learn more, go to https://d.android.com/r/tools/java-8-support-message.html If I go to the linked URL, I can see: If Android Studio detects that your project is using Jack, Retrolambda, or DexGuard , the IDE uses Java 8 support provided by

com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex - Android Studio 3.0 stable

梦想的初衷 提交于 2019-12-03 02:26:33
I made: In "Settings"->"Android SDK"->"SDK Tools" Google Play services is checked and installed v.46 Removed folder /.gradle "Clean Project" "Rebuild Project Error is: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex Project build.gradle buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath 'com.google.gms:google-services:3.1.0' } } allprojects { repositories {

Is it possible to discover and run third-party Android Instant Apps on an emulated device?

人盡茶涼 提交于 2019-12-03 02:05:53
I'm currently trying to learn about Android instant apps. Since I don't own any real devices that support them, I'm using the emulator (from Android Studio 3.0 Canary 9). I can successfully run "toy" instant apps ( like this ) on my emulated Nexus 5x (with Play Store), so I believe that my development environment is configured correctly. However, I was curious to learn about the discovery process for third-party apps, and find out what the user experience is like. Lacking a suitable device of my own, I used the emulated Chrome browser to search for sites (like Stack Exchange) that have instant

Cannot resolve symbol '?attr/actionBarSize' after updating Android Studio from 2.3 to 3.0 for buildToolsVersion '26.0.2'

爷,独闯天下 提交于 2019-12-03 01:25:22
问题 After updating Android Studio from 2.3 to 3.0 I changed buildToolsVersion from 26.0.0 to 26.0.2 and after then I am getting this error: Cannot resolve symbol '?attr/actionBarSize Xml code: <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="@color/colorPrimary" app:popupTheme="@style/ThemeOverlay.AppCompat.Light" app:titleTextColor="@android:color/white"/> Dependencies: compile 'com

Does Android Studio 3 support Java 9 for Android development? If so, what features of Java 9 are supported?

こ雲淡風輕ζ 提交于 2019-12-03 01:01:33
I'm going to install Android Studio 3 in order to develop an Android application. I'd like to know if it is possible to use Java 9 for Android development? If so, does it support all of the Java 9 features? As far as I know, the IDE itself supports Java 9. This means you can write a Java 9 desktop program, or run the IDE with JDK 9. However, Android itself does not support Java 9 (yet). You can still download JDK 9, although I have seen some questions on problems related to Android Studio and Java 9. Personally, I have Java 9 and Android Studio runs without problems. The Android SDK is the

Can't launch AVD on macOS 10.13

笑着哭i 提交于 2019-12-03 00:55:52
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 it is related with this. After that, I tried to install virtualBox to install genymotion, but I found

Android Studio 3.0 annotationProcessor [duplicate]

让人想犯罪 __ 提交于 2019-12-02 23:09:38
This question already has answers here : Incompatible plugins for android-apt after upgrading to Android Studio 2.3 (5 answers) 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 latest version ( 3.0 ). Edit: Adding includeCompileClasspath true inside defaultConfig doesn't help: javaCompileOptions {