gradle

Travis-CI `Android 28 licenses have not been accepted`

旧时模样 提交于 2020-05-14 14:42:29
问题 I'm trying to build android project using Travis using android-28 and build-tools-28.0.0 but no matter what I do I get >Failed to install the following Android SDK packages as some licences have not been accepted. platforms;android-28 Android SDK Platform 28 build-tools;28.0.0 Android SDK Build-Tools 28 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one

Travis-CI `Android 28 licenses have not been accepted`

杀马特。学长 韩版系。学妹 提交于 2020-05-14 14:41:10
问题 I'm trying to build android project using Travis using android-28 and build-tools-28.0.0 but no matter what I do I get >Failed to install the following Android SDK packages as some licences have not been accepted. platforms;android-28 Android SDK Platform 28 build-tools;28.0.0 Android SDK Build-Tools 28 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one

How to fix 'cannot find symbol class Nullable' error in android studio 3

你。 提交于 2020-05-14 12:09:05
问题 i'm using android studio 3.2 , and want to use SQLiteOpenHelper in my blank class . when i have run project java compiler return error : cannot find symbol class Nullable public class Db extends SQLiteOpenHelper { public Db(@androidx.annotation.Nullable Context context, @androidx.annotation.Nullable String name, @androidx.annotation.Nullable SQLiteDatabase.CursorFactory factory, int version) { super(context, name, factory, version); }} I also used this implementation implementation 'com

NullPointerException when loading an FXML

自古美人都是妖i 提交于 2020-05-14 02:51:11
问题 I am getting a NullPointerException regarding the location of my FXML. However, this only started to happen after I upgraded my JavaFX version (I need 13 to meet project requirements). My main class: public class Main extends Application { @Override public void start(Stage primaryStage) throws IOException { String path = "/fxml/loginScene.fxml"; Parent root = FXMLLoader.load(getClass().getResource(path)); primaryStage.initStyle(StageStyle.UNDECORATED); Scene scene = new Scene(root);

Springboot swagger url shows WhiteLabel Error page

◇◆丶佛笑我妖孽 提交于 2020-05-13 14:40:42
问题 Here is my code: I am getting all the values from application.properties file SwaggerConfig.java @Configuration @EnableSwagger2 @Profile("!prod") @PropertySource(value = { "classpath:application.properties" }) public class SwaggerConfig { @Value("${swagger.api.title}") private String title; @Value("${swagger.api.description}") private String description; @Value("${swagger.api.termsOfServiceUrl}") private String termsOfServiceUrl; @Value("${swagger.api.version}") private String version; @Value

Property 'sonar.jacoco.reportPath' is deprecated. Please use 'sonar.jacoco.reportPaths' instead

主宰稳场 提交于 2020-05-12 11:36:25
问题 Property 'sonar.jacoco.reportPath' is deprecated. Please use 'sonar.jacoco.reportPaths' instead. I keep getting this message when running SonarQube through Gradle and the phrase "reportPath" does not even appear even once in the entire multi-module project. I even put the sonarqube property under allprojects to override any defaults that may be there. Any tips on how I can get rid of this error? I am using: allprojects { sonarqube { properties { property "sonar.jacoco.reportPaths", "${project

Property 'sonar.jacoco.reportPath' is deprecated. Please use 'sonar.jacoco.reportPaths' instead

萝らか妹 提交于 2020-05-12 11:36:13
问题 Property 'sonar.jacoco.reportPath' is deprecated. Please use 'sonar.jacoco.reportPaths' instead. I keep getting this message when running SonarQube through Gradle and the phrase "reportPath" does not even appear even once in the entire multi-module project. I even put the sonarqube property under allprojects to override any defaults that may be there. Any tips on how I can get rid of this error? I am using: allprojects { sonarqube { properties { property "sonar.jacoco.reportPaths", "${project

Gradle - Could not get unknown property 'scm' for configuration container

£可爱£侵袭症+ 提交于 2020-05-12 09:02:03
问题 Execution failed for task ':app:iterateDeclaredDependencies'. > Could not get unknown property 'scm' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer. I'm using the exact code snippet from Working with Dependencies I don't know what scm is here but autocompletion seems to suggests that all is good, no? Versions I'm using: ------------------------------------------------------------ Gradle 5.4.1 ---------------------------------

Gradle - Could not get unknown property 'scm' for configuration container

﹥>﹥吖頭↗ 提交于 2020-05-12 09:01:41
问题 Execution failed for task ':app:iterateDeclaredDependencies'. > Could not get unknown property 'scm' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer. I'm using the exact code snippet from Working with Dependencies I don't know what scm is here but autocompletion seems to suggests that all is good, no? Versions I'm using: ------------------------------------------------------------ Gradle 5.4.1 ---------------------------------

Configure Jacoco with gradle and kotlin DSL

江枫思渺然 提交于 2020-05-11 19:02:02
问题 I'm trying to configure Jacoco to exclude some classes from analysis but can't find any working example :( I found some samples with afterEvaluate but no success 回答1: src/main/java/org/example/A.java : package org.example; class A { } src/main/java/org/example/B.java : package org.example; class B { } src/test/java/org/example/ExampleTest.java : package org.example; public class ExampleTest { @org.junit.Test public void test() { new A(); new B(); } } build.gradle.kts : plugins { java jacoco }