android-studio

Can I import a library write in Kotlin to my android project (uses java)

牧云@^-^@ 提交于 2020-02-24 14:08:27
问题 I have to import a library written in Kotlin to my android project. The library needed to import is here This library is written in Kotlin but I am using java in my project.Is this possible? I have done some research on this topic but I can't find a good document on this. 回答1: Yes you can. Kotlin compiles to Java bytecode so it's completely compatible 来源: https://stackoverflow.com/questions/43307926/can-i-import-a-library-write-in-kotlin-to-my-android-project-uses-java

Can I import a library write in Kotlin to my android project (uses java)

好久不见. 提交于 2020-02-24 14:08:27
问题 I have to import a library written in Kotlin to my android project. The library needed to import is here This library is written in Kotlin but I am using java in my project.Is this possible? I have done some research on this topic but I can't find a good document on this. 回答1: Yes you can. Kotlin compiles to Java bytecode so it's completely compatible 来源: https://stackoverflow.com/questions/43307926/can-i-import-a-library-write-in-kotlin-to-my-android-project-uses-java

Executing tasks: [clean, :app:assembleDebug] ERROR - Android Studio 3

◇◆丶佛笑我妖孽 提交于 2020-02-24 11:51:09
问题 i am new of android studio. and i am making my first apps, in the previous version 2.3 i dont have problem or stuck when making apps. but when i upgrade to the new version 3.0 i got problem, and when i trying to rebuild apk. it stuck at Executing tasks: [clean, :app:assembleDebug] . same problem when i build apk, rebuild and clean up. anyone can help fix this ? I still cant fix this. 10 actionable tasks: 9 executed, 1 up-to-date Executing tasks: [clean, :app:assembleDebug] Parallel execution

Gradle getting stuck at assembleDebug

走远了吗. 提交于 2020-02-24 09:27:25
问题 I've been working on a Flutter project for the past month. I've been able to run this code successfully up to this point but now it no longer works. I believe this happened after my package manager updated Flutter (running Arch Linux). The output of flutter run --verbose : ➜ imperium2 git:(master) ✗ flutter run --verbose [ +15 ms] executing: [/opt/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +17 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty

Android studio : call requires API Level 16 error

守給你的承諾、 提交于 2020-02-24 07:43:32
问题 I'm getting the following error in Android studio. The sqlitedatabase.close() method is available since API Level 1 but the android studio ide fails to detect that. 回答1: A couple of days ago, an updated version appeared (build AI-130.687321, dated May 24 2013), where the issue is fixed. 回答2: As Ahmad said, it looks like a bug. Meanwhile, try releaseReference() which is equivalent to see if the same happens. UPDATE: Supposing you were in Eclipse, to re-enable checks (found here): Lint puts the

How to start Dart project in Android Studio?

余生长醉 提交于 2020-02-24 00:53:28
问题 During installation of Flutter plugin it was said that Dart plugin will also be installed. So I installed them both. But when I open "File > New" menu I see "New Flutter project", "New Project" but nothing about Dart. In "New Project" dialog I see "Include C++ support", "Include Kotlin support" only. How could I start simple Dart project ? 回答1: Consider installing IntelliJ IDEA Community Edition, which should feel familiar if you use Android Studio. Install the Dart language plugin and you'll

How to start Dart project in Android Studio?

我只是一个虾纸丫 提交于 2020-02-24 00:36:02
问题 During installation of Flutter plugin it was said that Dart plugin will also be installed. So I installed them both. But when I open "File > New" menu I see "New Flutter project", "New Project" but nothing about Dart. In "New Project" dialog I see "Include C++ support", "Include Kotlin support" only. How could I start simple Dart project ? 回答1: Consider installing IntelliJ IDEA Community Edition, which should feel familiar if you use Android Studio. Install the Dart language plugin and you'll

Expiring Daemon because JVM heap space is exhausted

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-23 08:36:32
问题 I just updated the Android Studio to 3.5 Beta 1 and I'm getting Expiring Daemon because JVM heap space is exhausted message while the build is running. Also, the build is taking more time to complete. Does anyone have any idea regarding this? 回答1: I was able to solve this for my React Native project by configuring the following: // gradle.properties org.gradle.daemon=true org.gradle.configureondemand=true org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile

Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version

巧了我就是萌 提交于 2020-02-23 03:56:31
问题 I am currently having this problem when I am opening a project: The errors showing in Event Log : Unable to detect adb version, exit value: 0xc0000409, adb output: adb.exe F 11-11 09:55:06 17768 944 fdevent_poll.cpp:64] failed to create fdevent interrupt socketpair: Invalid argument The errors showing in event Log: Emulator: emulator: ERROR: AdbHostServer.cpp:93: Unable to connect to adb daemon on port: 5037 回答1: This problem is not with your adb.exe or android studio. And you don't need to

Duplicate class from androidx.core:core:1.0.0 and com.android.support:support-compat:26.1.0

五迷三道 提交于 2020-02-23 03:51:48
问题 This is my build.gradle : buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' repositories { maven { url 'https://maven.fabric.io/public' } google() } android { compileSdkVersion 26 buildToolsVersion '26.0.2' useLibrary 'org.apache.http.legacy' defaultConfig {