android-gradle

Using com.bea.xml.stream package on android

久未见 提交于 2019-11-28 02:02:30
For getting Apache POI to work on Android, I need to get Stack to work on Android. Following this question: Using JAXB with Google Android and @Sean Barbeau's answer. I successfully converted all the jar's to android compatible ones including the Apache POI library but it still gives me this run time error: 06-22 01:06:52.461 14865-14865/com.quizwiz.sharmakritya.poi E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.quizwiz.sharmakritya.poi, PID: 14865 edu.usf.cutr.javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found at edu.usf.cutr.javax.xml.stream

Unable to merge DEX in Android Studio 3.0.1 even after enabling multidex

﹥>﹥吖頭↗ 提交于 2019-11-28 01:33:34
I have a problem in my android project. I recently upgraded from lower version and then rebooted my OS with Linux. My project was working fine. But, now as I have compiled, it shows unable to merge dex. I tried : putting enable; multiDexEnabled true option in build gradle, and did everything possible. So, this is my console log after running stack trace and I couldnt still figure out, what went wrong. Can anybody help me ? Any help would be much appreciated. I have posted my app build gradle and the error below apply plugin: 'com.android.application' android { compileSdkVersion 26

Gradle native libraries not found on device but present in apk

冷暖自知 提交于 2019-11-28 01:20:33
My application uses Here SDK and Twilio SDK . Both uses native libraries (Here SDK with native libraries locally plugged in from /libs and /jniLibs folders, Twilio SDK plugged in from jCenter). But on Android 5.1 Here SDK throws exception "MISSING LIBRARIES: libMAPSJNI.so" although this library present in result APK. I opened folder where my program is installed on device and compared content in two cases: with or without Twilio SDK. The difference is that when connected Twilio API folder /lib is a file, and for obvious reasons, the loader can not see inside it native libraries needed

error can not resolve symbol TabLayout and 'design

被刻印的时光 ゝ 提交于 2019-11-28 01:09:47
Please help: I got error when import android.support.design.widget.TabLayout It say "can not resolve symbol 'design' My build.gradle: compileSdkVersion 26 buildToolsVersion "26.0.0" dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:26' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:support-v4:26' testCompile 'junit:junit:4.12' } Nilesh Rathod

No cached version of gradle

送分小仙女□ 提交于 2019-11-28 01:05:41
I am getting this error when syncing gradle. I am pretty new to gradle so can't figure out what is the problem exactly? Error:No cached version of com.android.tools.build:gradle:0.10.1 available for offline mode. When I go to Setting->Gradle , I have offline mode ticked off and using default gradle wrapper. In my case I also had an additional "offline switch" to the one in Gradle. Go to: File > Settings > Build, Execution, Deployment > Compiler There I've removed the --offline in Command-line Options . Earlier I was trying to speed up Android Studio a bit and this was one of the changes I had

Android Studio ignore --core-library flag

隐身守侯 提交于 2019-11-28 00:53:14
I have a project, which i want to configure on my computer. On anothe computer it works, but with old version of Android Studio 0.4.0 whenever I use 0.5.2 The proble is that after I launch app it show error Build script error, unsupported Gradle DSL method found: 'coreLibrary()'! Possible causes could be: - you are using Gradle version where the method is absent - you didn't apply Gradle plugin which provides the method - or there is a mistake in a build script But in order to make it work I have to use this flag! I already tried to enable it in the settings>Android compilers > "Add --core

Using Firebase Storage image with Glide

五迷三道 提交于 2019-11-27 23:52:41
There are tons of duplicated answers I had tried almost all of them but I am still not able to use Firebase storage image with Glide. First of all I am using docs FirebaseStorage storage = FirebaseStorage.getInstance(); StorageReference storageRef = storage.getReference(); StorageReference pathReference = storageRef.child("sorular/1.jpg"); // ImageView in your Activity ImageView imageView = rootView.findViewById(R.id.imageView); // Load the image using Glide Glide.with(this /* context */) .using(new FirebaseImageLoader()) // Cannot resolve method 'using .load(pathReference) .into(imageView);

Gradle plugin 3.0.0 beta 4: “buildTypeMatching has been removed. Use buildTypes.<name>.fallbacks”

て烟熏妆下的殇ゞ 提交于 2019-11-27 23:48:38
After updating to Gradle plugin 3.0.0 beta 4 our build failed with the following message: buildTypeMatching has been removed. Use buildTypes.<name>.fallbacks Our libraries have release and debug buildType s, but our app has two additional buildType s: 'releaseWithLogs' and 'debugMinified'. Snippet of our app Gradle file: android { // ... buildTypeMatching 'releaseWithLogs', 'release' buildTypeMatching 'debugMinified', 'debug' buildTypes { debug { // ... } debugMinified { // ... } release { // ... } releaseWithLogs { // ... } } } After some investigation, the following announcement has been

Android Studio — clear application data for Instrumentation Test

孤者浪人 提交于 2019-11-27 23:37:25
How can I get Android Studio (AndroidJunitRunner) to clear application data preceding an instrumentation test without manually running adb command? I discovered that android.support.test.runner.AndroidJUnitRunner kind of cheats -- it never actually invokes connectedCheck or connectedAndroidTest . When run from command line $ gradle connectedCheck :MyMainApp:assembleDebug UP-TO-DATE :MyMainApp:assembleDebugTest UP-TO-DATE :MyMainApp:clearMainAppData :MyMainApp:connectedCheck When run from within IDE by clicking the instrumentation test configuration (green Android robot logo with red/green

Error:Program type already present: android.arch.lifecycle.LiveData

落花浮王杯 提交于 2019-11-27 22:44:19
When I press the play button in Android Studio, my app compiles but is shows this error (redacted): Error:Program type already present: android.arch.lifecycle.LiveData (Full log) I've tried deleting the .gradle folder, then going to Build > Clean Project and Build > Rebuild Project . However, it doesn't work. I've also tried deleting the source code, then cloning again from git and importing the folder to Android Studio. However, it still produces that error. Here's my app's app/build.gradle : apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion '27.0.3'