android-gradle-plugin

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

Jenkins build failed due to missing android SDK

こ雲淡風輕ζ 提交于 2021-01-20 16:10:34
问题 As the title says my jenkins build fails due to not finding the android sdk dispite it being located in the environments path. Here is the console logs Started by user anonymous Building in workspace /Users/lmnapp/.jenkins/jobs/Android_app_master/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://bitbucket.org/xxxxx-xxx/xxxx-android-app.git # timeout=10 Fetching upstream changes from https:/

Jenkins build failed due to missing android SDK

两盒软妹~` 提交于 2021-01-20 15:57:51
问题 As the title says my jenkins build fails due to not finding the android sdk dispite it being located in the environments path. Here is the console logs Started by user anonymous Building in workspace /Users/lmnapp/.jenkins/jobs/Android_app_master/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://bitbucket.org/xxxxx-xxx/xxxx-android-app.git # timeout=10 Fetching upstream changes from https:/

How to create publish closure? (Android Studio)

风格不统一 提交于 2021-01-20 11:51:14
问题 When I want to build my project in Android Studio, I get this error: Have you created the publish closure? Missing publishVersion. Missing desc. Half year ago I've made last changes on this project. Now I've cloned it from github and I got this error. Please help me with this problem. 回答1: Coincidence I bumped into this, the error is from a Novoda library (where I work!) :-) https://github.com/novoda/bintray-release You have added this dependency to your top level repo: classpath 'com.novoda

How to create publish closure? (Android Studio)

自古美人都是妖i 提交于 2021-01-20 11:50:55
问题 When I want to build my project in Android Studio, I get this error: Have you created the publish closure? Missing publishVersion. Missing desc. Half year ago I've made last changes on this project. Now I've cloned it from github and I got this error. Please help me with this problem. 回答1: Coincidence I bumped into this, the error is from a Novoda library (where I work!) :-) https://github.com/novoda/bintray-release You have added this dependency to your top level repo: classpath 'com.novoda

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:

Why does the host specified in network_security_config.xml get merged into the AppLinks section of the Android manifest by the build process?

余生颓废 提交于 2021-01-05 08:58:19
问题 Following on from this question where I had a real issue with AppLinks. The problem was eventually narrowed down to the fact that the build process was dragging the host from the network_security_config.xml into the merged manfest file section specifying the AppLinks. This unexpected host that I used for testing wasn't hosting an assetlinks.json specifying the correct signatures. Details of the answer can be found here. So, why does the build process turn this <intent-filter android

How to create an android studio project offline?

拜拜、爱过 提交于 2021-01-05 07:18:25
问题 I want to create my android projects offline. I've tried several techniques but none of them worked for me! I've downloaded offline components (Android Gradle Plugin & Google Maven dependencies) from developers.android.com website for creating offline projects, but the problem is that I don't know how to make them work with android studio? Please help! 回答1: As said here https://developer.android.com/studio/build/optimize-your-build#offline_mode (Android Studio < 3.6) If you are on a slow

How to create an android studio project offline?

天涯浪子 提交于 2021-01-05 07:17:13
问题 I want to create my android projects offline. I've tried several techniques but none of them worked for me! I've downloaded offline components (Android Gradle Plugin & Google Maven dependencies) from developers.android.com website for creating offline projects, but the problem is that I don't know how to make them work with android studio? Please help! 回答1: As said here https://developer.android.com/studio/build/optimize-your-build#offline_mode (Android Studio < 3.6) If you are on a slow

How to create an android studio project offline?

柔情痞子 提交于 2021-01-05 07:17:07
问题 I want to create my android projects offline. I've tried several techniques but none of them worked for me! I've downloaded offline components (Android Gradle Plugin & Google Maven dependencies) from developers.android.com website for creating offline projects, but the problem is that I don't know how to make them work with android studio? Please help! 回答1: As said here https://developer.android.com/studio/build/optimize-your-build#offline_mode (Android Studio < 3.6) If you are on a slow