android-studio

New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version

随声附和 提交于 2020-01-31 06:05:59
问题 I'm uising android studio 3.4.1 and my kotlin version is 1.3.31. I have a flutter app. When trying to add cloud_firestore to my app. I have a following issue. My android studio is kotlin version is exactly same as build.gradle. Any advice? Here is the my buld.gradle: buildscript { ext.kotlin_version = '1.3.31' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.4.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // for firebase

Android Studio and Bitbucket plugin

笑着哭i 提交于 2020-01-30 17:54:09
问题 Suddenly when I try to checkout a project from BitBucket i get an error msg saying: NoClassDefFoundError: com/intellij/ide/ui/ListCellRendererWrapper: com/intellij/ide/ui/ListCellRendererWrapper NoClassDefFoundError: org/bitbucket/connectors/jetbrains/ui/BitbucketCloneProjectPanel$1: org/bitbucket/connectors/jetbrains/ui/BitbucketCloneProjectPanel$1 I tried to reinstall the plugin but no luck. Anyone please? 回答1: I found the solution here: https://bitbucket.org/atlassian/jetbrains-bitbucket

How to show line numbers in Android Studio [duplicate]

心不动则不痛 提交于 2020-01-30 14:29:28
问题 This question already has answers here : How can I permanently enable line numbers in IntelliJ? (20 answers) Closed 4 years ago . I'm posting a quick reference for "How can I show line numbers in Android Studio?" See answer below. NOTE: This question has been marked as a duplicate because Android Studio is based on IntelliJ. In future, if you have a similar question, it's probably worth looking for the IntelliJ setting. 回答1: In Windows 1.Press Ctrl+Shift+A 2.Input following string: "show line

How to show line numbers in Android Studio [duplicate]

一个人想着一个人 提交于 2020-01-30 14:28:13
问题 This question already has answers here : How can I permanently enable line numbers in IntelliJ? (20 answers) Closed 4 years ago . I'm posting a quick reference for "How can I show line numbers in Android Studio?" See answer below. NOTE: This question has been marked as a duplicate because Android Studio is based on IntelliJ. In future, if you have a similar question, it's probably worth looking for the IntelliJ setting. 回答1: In Windows 1.Press Ctrl+Shift+A 2.Input following string: "show line

Configure Android Studio with Bitbucket team repo

大兔子大兔子 提交于 2020-01-30 14:15:12
问题 I am trying to configure Android Studio to work with my team repo on Bitbucket. What I would like to do in the first place is to push my local project onto my team's repo. I have already installed the Bitbucket plugin but don't really know where to go from here. When I try to commit the changes, all I get is "No changes detected". 回答1: Without Using Any Plug-in First from VCS menu of android studio select Enable Version Control Integration , it will ask you for selecting versioning tool,

Android WebView URL intercept , i want to load only one website and it's pages , and nothing else

你。 提交于 2020-01-30 12:01:02
问题 I have a problem , i'm trying to create an app for my website and i'm using android webview to do that, but since there's external links (ads, backlinks.. etc) in my website , when the user clicks these links , the webview opens the links and my app acts like a browser , i know that's what webview is but i want it to open only links of my website i ovverided the shouldOverrideUrlLoading method and i intercepted the urls and i returned true if the urls are diffrent than my website prefix , but

Android WebView URL intercept , i want to load only one website and it's pages , and nothing else

时光总嘲笑我的痴心妄想 提交于 2020-01-30 11:59:07
问题 I have a problem , i'm trying to create an app for my website and i'm using android webview to do that, but since there's external links (ads, backlinks.. etc) in my website , when the user clicks these links , the webview opens the links and my app acts like a browser , i know that's what webview is but i want it to open only links of my website i ovverided the shouldOverrideUrlLoading method and i intercepted the urls and i returned true if the urls are diffrent than my website prefix , but

Failing to update the table based on checked value

。_饼干妹妹 提交于 2020-01-30 11:57:27
问题 I've a listview from the database with checkbox. My objectives is to insert the checked listview into a table and update another table based on the checked listview . Unfortunately, my SQL query did not work in the section. Here is my code to insert the checked listview into BRTR table and update rows in WORKTR table based on the checked listview: // Get Item Checked Button btnGetItem = (Button) findViewById(R.id.btnGetItem); btnGetItem.setOnClickListener(new OnClickListener() { public void

Can't import android project from git

牧云@^-^@ 提交于 2020-01-30 06:27:29
问题 I'm trying to clone a repository from my github into android studio. When I import, I get two errors: ProjectName.iml does not exist app.iml does not exist I checked the paths that contain both of these files, and they do exist. Also, after that, I don't see the 'src' folder of my project within Android Studio.. I tried switching to Android view, and every other view there, to no avail. I checked the repository it created, but won't show up in Android Studio 回答1: Its a known issue in the IDE,

How to get usage stats for “current day” using usageStatsManager in android (kotlin)

。_饼干妹妹 提交于 2020-01-30 05:15:52
问题 Objective: Need to get the usage stats for today (total time for which the device was used today) ie. 12.00 am to current time. Problem: 1.I get today's time + some other non explainable time 2.Non explainable time stamps(start and end of the usage stats as retrieved by the getTimestamp methods) The time bucket is not relevant. I give the start time as 12.00 am and the end time as current time, but I get completely irrelevant ".firstTimeStamp" and ".lastTimeStamp" (which supposedly return the