android-studio

Generate signed apk fails with build\app\intermediates\flutter\profile\libs.jar (The system cannot find the path specified)

北慕城南 提交于 2021-01-20 16:21:51
问题 I am on android studio 4. Gradle is 6.1.1. And I created a new flutter project from android studio. Then I opened the project as an android project. There is such an option in Tools->Flutter. Which resulted in gradle sync. That was successful. But when I try to generate signed apk with my keys. I get this. error \path\to\my\project\build\app\intermediates\flutter\profile\libs.jar (The system cannot find the path specified) There is no profile directory at the given location. But there are

Generate signed apk fails with build\app\intermediates\flutter\profile\libs.jar (The system cannot find the path specified)

只愿长相守 提交于 2021-01-20 16:21:43
问题 I am on android studio 4. Gradle is 6.1.1. And I created a new flutter project from android studio. Then I opened the project as an android project. There is such an option in Tools->Flutter. Which resulted in gradle sync. That was successful. But when I try to generate signed apk with my keys. I get this. error \path\to\my\project\build\app\intermediates\flutter\profile\libs.jar (The system cannot find the path specified) There is no profile directory at the given location. But there are

Is android studio an open source project?

假如想象 提交于 2021-01-20 15:47:32
问题 Is Android Studio an open source project? If it is, where can I get its source code? Can we add plugins for Android Studio? Where is the API available for Android Studio? 回答1: Indeed Android Studio is an open source project. It encourages developers to work on plugins and extensions. You can get the source code here https://android.googlesource.com/platform/tools/adt/idea/+/refs/heads/mirror-goog-studio-master-dev 回答2: Well some of android studio may be but the binary build of the SDK is not.

Where are the file templates in Android Studio 4.1 located?

半城伤御伤魂 提交于 2021-01-20 15:30:11
问题 I have trouble importing my custom file templates into Android Studio 4.1 Canary 5 . In prior versions of Android Studio (up to 4.0) I used to copy my templates into <Android Studio Installation>/Contents/plugins/android/lib/templates (I am using Mac) But in 4.1, there are no templates there and when I copy mine there, they seem to be ignored. Has anyone faced the same issue? Thank you! 回答1: Android Studio 4.1 uses a new templating API which is visible but not public yet - you can see a

No tests found for given includes Error, when running Parameterized Unit test in Android Studio

泄露秘密 提交于 2021-01-20 14:43:06
问题 I tried run Parameterized Unit Test as below in Android Studio. import android.test.suitebuilder.annotation.SmallTest; import junit.framework.TestCase; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; import java.util.Arrays; import java.util.Collection; @RunWith(Parameterized.class) @SmallTest public class

No tests found for given includes Error, when running Parameterized Unit test in Android Studio

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-20 14:43:02
问题 I tried run Parameterized Unit Test as below in Android Studio. import android.test.suitebuilder.annotation.SmallTest; import junit.framework.TestCase; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; import java.util.Arrays; import java.util.Collection; @RunWith(Parameterized.class) @SmallTest public class

I the error “unexpected element <queries> found in <manifest>”, how to fix it? [closed]

為{幸葍}努か 提交于 2021-01-20 07:10:33
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 28 days ago . Improve this question this is the screenshot play-services-ads-lite-19.6.0/AndroidManifest.xml:27:5-38:15: AAPT: error: unexpected element <queries> found in <manifest> . This is the error. 回答1: I also had same issue on Android Studio 4.1.1, suddenly, 2 days ago. I solved the issue by upgrading

Gradle sync failed: Cause: error=2, No such file or directory

為{幸葍}努か 提交于 2021-01-19 23:32:04
问题 I am trying to get the latest revision number of mercurial repository dynamically and have it in the versionName of the android app. This is what I have in the gradle file: def buildNumber = "hg id -i -n -r tip".execute().text.trim() Please note that when I try building the same in the terminal, I could successfully build using: ./gradlew assembleRelease However, the android studio is unable to sync and couldn't build the app. I get the below error in the event log: Gradle sync failed: Cause:

Android Studio can't login to GitHub

我与影子孤独终老i 提交于 2021-01-19 17:15:23
问题 I'm getting this issue while logging in on GitHub on Android Studio: Can't login: Can't get user info 404: Not found Has someone faced this issue? How can I get around this? 回答1: I use "github.com" as host (not the whole clone url), and my github login and password and can login without any issues. 回答2: I have faced this problem too. Try using token to login. Log in to github.com on the browser. Go to Settings -> Developer settings -> Personal access tokens. There you can create a new token

How to Enable Kotlin Android Extensions by Default in Android Studio 4.1

徘徊边缘 提交于 2021-01-18 05:28:29
问题 Why kotlin-android-extensions not enabled by default in this latest version of Android Studio? In fact, as long as i know, i have to manually add the plugin in gradle files. Any workaround so that i can add the plugin and enable it automatically everytime i create new project? Thanks before. ICYMI, this is the code that needs to be added to enable kotlin-android plugins { id 'com.android.application' id 'kotlin-android' // add kotlin-android-extensions id 'kotlin-android-extensions' } 回答1: In