android-studio

Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory)

橙三吉。 提交于 2020-01-25 06:40:08
问题 Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:17:5-122:19 to override. org.gradle.api.tasks.TaskExecutionException: Execution

Exclude files using proguard rules

丶灬走出姿态 提交于 2020-01-25 06:13:06
问题 I am trying to reduce the size of the apk using proguard . I am getting these warnigs messages while doing so , Warning: can't write resource [META-INF/LICENSE.txt] (Duplicate zip entry [commons-lang-2.6.jar:META-INF/LICENSE.txt]) Warning: can't write resource [META-INF/NOTICE.txt] (Duplicate zip entry [commons-lang-2.6.jar:META-INF/NOTICE.txt]) Warning: can't write resource [.readme] (Duplicate zip entry [classes.jar:.readme]) Apart from keeping classes is there any way to exclude these

Importing AndEnginePhysicsBox2DExtension-GLES2 in Android Studio 1.5

杀马特。学长 韩版系。学妹 提交于 2020-01-25 04:58:04
问题 I'm trying to make flappy bird equivalent app using AndEngine . I'm having trouble importing AndEnginePhysicsBox2DExtension-GLES2 module in Android Studio 1.5 So far, I have imported AndEngine-GLES2 as module by Project Structures -> green + sign on left top -> import Eclipse ADP -> selecting path to AndEngine-GLES2 source. For some reason when I try this for AndEnginePhysicsBox2DExtension-GLES2 , it doesn't recognize it as module therefore I can't import it. I'm not using JAR FYI. step 4 in

How can I make two separate buttons do two different things in an activity?

对着背影说爱祢 提交于 2020-01-25 03:57:11
问题 I'm trying to make one button calculate and display currency (this one is working) and I'm trying to make the other one open another activity and display the currency calculation there. I've tried different ways of trying to have two different options for btnSubmit (which shows the result of the currency calculation) and btnDifferent (which opens the result in the separate activity displaying the currency calculation result). Now I can only manage to calculate the result and open the other

Freshly imported Android Studio project errors with zxing module

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-25 02:20:30
问题 I have been using zxing module as an android library for some time without problems. I have imported my Eclipse project into Android Studio (which I use for everything else!) and the zxing library is added as a module. In one of my classes in the main module I reference the com.google.zxing.android.client.Intents class which is in the zxing module. I can write code in Android studio and these references have the correct imports selected. When I run a gradlew clean build I am getting messages

Error inflating class android.support.design.internal.BottomNavigationView

吃可爱长大的小学妹 提交于 2020-01-24 21:42:34
问题 i'm making my first app. it is a simple application with a splash screen and the main activity and now with flavours i have two build variants: Free Version: With Admob banner on bottom of the activity Paid Version: The app don't show admob banner on the bottom but replace it with a Bottom Navigation View for switch activity ( i will add another activity for this). I tell you that before i add this Bottom Navigation View all part of application work properly, include Build variants. This is

Android Studio build failed with Kotlin

两盒软妹~` 提交于 2020-01-24 21:27:13
问题 :app:mergeDebugAssets :app:processDebugJavaRes UP-TO-DATE :app:transformResourcesWithMergeJavaResForDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK kotlin/internal/internal.kotlin_builtins File1: /Users/KD/.gradle/caches/modules-2/files-2.1/org.jetbrains

Execution failed for task ':app:processDebugResources'. > Failed to execute aapt (react-native)

雨燕双飞 提交于 2020-01-24 21:21:16
问题 I am working on a react-native app. When i tried to add react-native-navigation using the provided documentations about it, this is the error i'm getting, have tried all the solutions already available, but not working for me. Task :app:processDebugResources FAILED Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796) at com.android.build.gradle.tasks

Android studio 3.5 refactor issue

我只是一个虾纸丫 提交于 2020-01-24 20:59:06
问题 I just updated my studio with android studio 3.5 and now when I am trying to refactor AndroidManifest.xml file and it is refactoring my all app permission to the bottom of my file. Have any one faced this issue? Is there any solution for this refactoring issue? Before refactor: After refactor: It is applicable to my all project files. Why it matters: 回答1: You just need to set xml layout for Android applications from the settings. Follow this steps: 1. Go to Android Studio > Preferences . For

Greek text on android utf8 not show properly

╄→гoц情女王★ 提交于 2020-01-24 20:36:28
问题 I'm making app with Greek text and data but not every letter is shown. Letter which is not shown not make ? mark but just white space. File encoding is set to utf8 and in build.gradle , I have set compile for utf8 . For example: (agapó) ἀγαπῶ (ἀγαπᾶν) in listview is shown as (agapó) γαπ (γαπ ν) . Even button on XML not shown properly same problem. The screenshot: private void inicialization() { sound = (ImageView) findViewById(R.id.sound); home = (ImageView) findViewById(R.id.home); home