Questions tagged [android-gradle-3.1.0]

18 questions
12
votes
2 answers

Excluding the same group from multiple dependencies in gradle?

I have the following code in the build.gradle in the app module of my Android project implementation('com.google.firebase:firebase-core:16.0.1', { exclude group:…
10
votes
2 answers

java.lang.UnsatisfiedLinkError: dlopen failed: library not found

I am trying to build my Android (native) project using cmake (migrating it from gradle experimental plugin where it used to build and run fine). I have some native code(will call it 'a') which uses another external prebuilt library code (will call…
smitt
  • 304
  • 1
  • 3
  • 8
4
votes
0 answers

Getting stuck at gradle build :app:transformClassesWithDexBuilderForDebug

After switching to Java 8 (below are the newly added lines) for our Android project, Gradle build always gets stuck at :app:transformClassesWithDexBuilderForDebug. compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 } Please…
Rivu Chakraborty
  • 1,372
  • 2
  • 12
  • 37
3
votes
1 answer

Duplicate values issue in Android Studio gradle

I have been trying to add a dependency of com.shamanland:fonticon:0.1.8 but as I add this I get the error error: duplicate value for resource 'attr/textSize' with config ''. error: resource previously defined here. There are too many values…
3
votes
1 answer

Error For input string: " 12" Android studio

My gradle is bellow: buildscript { repositories { maven { url 'https://plugins.gradle.org/m2/' } } dependencies { classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.8.1' } } apply plugin:…
user4813855
2
votes
1 answer

`transformNativeLibsWithStripDebugSymbol` is not executing

I have a routine that expects AGP to produce app/build/intermediates/transforms/stripDebugSymbol/debug directory on assembleDebug. Also I have some aars with native code in my dependencies. It works pretty well on my local machine but doesn't work…
Vsevolod Ganin
  • 623
  • 8
  • 22
1
vote
1 answer

Android - How to export dependency tree to a file?

I want to export the dependency tree to a file. How can I do so? Below is the command I used to generate dependency ./gradlew app:dependencies
1
vote
0 answers

Android Studio Received status code 407 from server: Proxy Authentication Required

I checked my proxy connection and it seems fine but I am getting this error : Could not HEAD 'http://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'. Received status code 407 from server: Proxy Authentication…
Raulp
  • 7,758
  • 20
  • 93
  • 155
1
vote
2 answers

Android Studio gradle sync failed: no cached version

While starting android, GRADLE SYNC failed and this error pop up Gradle sync failed: No cached version of com.android.tools.build:gradle:3.1.2 available for offline mode. Consult IDE log for more details (Help | Show Log) (4m 29s 435ms) Please help…
1
vote
1 answer

Android Studio 3.1 Build Fails with ClassNotFoundException

I am experiencing this error when building my project after Android Studio (AS) update to version 3.1: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':MyModule:transformClassesWithProfilers-transformForDebug'. at…
1
vote
3 answers

Import class from 3rd Party Library. Android Studio 3.1, Gradle 3.1

After updating Android Studio and gradle to 3.1, I changed all compile statements to implementation. But when I build, android studio cannot resolve imports found in 3rd party libraries. Scenario: Main projects imports sub-module which also import…
Bubunyo Nyavor
  • 2,511
  • 24
  • 36
1
vote
2 answers

Can't build app, error TaskExecutionException :app:compileDebugJavaWithJavac, gradle 3.1.0

I have updated Android Studio from 3.0 to ver. 3.1 buildToolsVersion 26.0.2 to buildToolsVersion 27.0.3 classpath 'com.android.tools.build:gradle:3.0.1' to 3.1.0 And now my project doesn't build build failed : …
0
votes
0 answers

How to exclude a specific resource file from Android build?

I have been working on creating multiple product flavors. I have a requirement to include only specific set of file into the build from the source directory. I have used the include filters as given below lean { java{ …
0
votes
1 answer

how to execute individual Junit test in android using gradle

My project contains multiple test classes and each class contains some test methods. I can run all the test using command line gradlew testDebugUnitTest Is there any gradlew command to run specific testMethod from a class? Is there any gradlew…
0
votes
0 answers

'The Package appears to be corrupt' for android release build generated using gradle command in react native

I have a strange issue. I have developed a application in React Native and it was uploaded to app store and play store for first version. Now I have planned for 2nd version and have finished coding and it was working fine when I run it through…
1
2