build.gradle

Android - Getting multiple errors while building the project

走远了吗. 提交于 2019-12-02 12:38:21
问题 I am getting these errors while building the project Failed to resolve: firebase-core Failed to resolve: multidex Failed to resolve: play-services-ads Failed to resolve: play-services-auth Failed to resolve: firebase-auth-license Failed to resolve: common Please check and let me know how this issue can be resolved? plugins { id 'com.onesignal.androidsdk.onesignal-gradle-plugin' version '0.8.1' } apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' apply plugin: 'com.android

Unable to build gradle and create java class

一曲冷凌霜 提交于 2019-12-02 11:46:07
Any project in my android studio fails to build.The error message is as follows- Gradle sync failed: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.3-all.zip'. Consult IDE log for more details (Help | Show Log) Moreover i'm unable to make a new java class in android studio by File->new->Java class as no such option is available. I found some answers saying right click on java folder then clicking Mark Directory as -> SOurce root, even this option is not there . Moreover, for resolving the gradle issue, i found some answers saying click

Unable to start SpringBoot server due to missing EmbeddedServletContainerFactory bean

左心房为你撑大大i 提交于 2019-12-02 11:39:14
问题 I am trying to write a very simple groovy & spring web application using gradle for dealing with dependencies. The thing is I am unable to start the application and can't figure out why at all. The following is my main method in ReleaseApp.groovy package com.ullink.release.config import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication @SpringBootApplication(scanBasePackages = "com.ullink.release.*") class ReleaseApp { static void

Is Gradles `jar` a method?

删除回忆录丶 提交于 2019-12-02 10:52:39
问题 I'm using the Java Plugin in Gradle apply plugin: 'java' I also configure the Jar-task using: version = '1.0' jar { manifest { attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version } } If I understood it right, jar is a method which is called with a closure as the parameter. But where is this method documented? I my understandung it schuld be a method of Project. I couldn't find it in https://docs.gradle.org/current/userguide/java_plugin.html and https:/

How to restore build.gradle and .Gradle folder

≯℡__Kan透↙ 提交于 2019-12-02 09:16:08
问题 When I was trying to solve an issue with Android Studio I accidentally deleted .Gradle folder at the top of the project and build.gradle from within the app. I will post a screen shot of my project in Android Studio. The build tab also produces "make module my app project name" and "deploy module to app engine". The usual clean project, rebuild.... are not there. How can I restore them? 回答1: If your are not using a VCS: try use the local history to recovery the build.gradle file in your root

getting an issue while archiving opentok audio/video chat

℡╲_俬逩灬. 提交于 2019-12-02 09:08:13
问题 I am trying to configure audio/video chat and archive audio/video chat with OpenTok API. I have successfully configure audio/video chat with OpenTok but unable to perform archive. Getting following issue: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: duplicate entry: org/apache/commons/collections/ArrayStack.class This is my library: Following are my dependencies: dependencies { //compile project(':androidConferenceWebRTC') compile

play-services-ads:18.0.0 and appcompat-v7:28.0.0 - merger failed and dependencies using groupid com.android.support and androidx.* can not be combined

佐手、 提交于 2019-12-02 08:33:37
问题 I have an early version of play service and it was ok. Now I update it to 18.0.0 and have many errors: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element

error: package android.support.design.widget does not exist

半腔热情 提交于 2019-12-02 08:21:10
i'm new to android. when i want to import a project into my android studio it complain about this error that : error package android.support.design.widget does not exist here is my code : public class CatalogActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_catalog); // Setup FAB to open EditorActivity FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent

Android - Getting multiple errors while building the project

荒凉一梦 提交于 2019-12-02 06:54:23
I am getting these errors while building the project Failed to resolve: firebase-core Failed to resolve: multidex Failed to resolve: play-services-ads Failed to resolve: play-services-auth Failed to resolve: firebase-auth-license Failed to resolve: common Please check and let me know how this issue can be resolved? plugins { id 'com.onesignal.androidsdk.onesignal-gradle-plugin' version '0.8.1' } apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion '27.0.3' defaultConfig { applicationId "com

Gradle exclude module for Copy task

懵懂的女人 提交于 2019-12-02 06:36:10
问题 I have a Copy task set as follow: task copyToLib( type: Copy ) { into "$buildDir/myapp/lib" from configurations.runtime // We only want jars files to go in lib folder exclude "*.exe" exclude "*.bat" exclude "*.cmd" exclude "*.dll" // We exclude some lib exclude group: "org.slf4j", name: "slf4j-api", version: "1.6.2" } And i'm getting the following error: Could not find method exclude() for arguments [{group=org.slf4j, name=slf4j-api, version=1.6.2}] on task ':copyToLib' of type org.gradle.api