I've made an application that was tested on three mobile phones. Two of them have android version 7 and application works on them without any errors. The third one has android version 6.01 and when I start application, it goes blank and on logcat there are 2 warnings:
Code:
ClassLoader referenced unknown path:
/data/app/com.ja.prog-1/lib/arm
Second one:
Code:
Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter
(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
You didn't post any of your xml files. My guess: try to use app:backgroundTint instead of android:backgroundTint
Related
I am totally new to Andriod app coding. I have downloaded Andriod Studio base and I tried to create a custom Virtual Device for my XiaoMi Pad 2.
I have set all specifications according to XiaoMi Pad2. However, when I tried to select the corresponding system image version, which is version 5.1 on the XiaoMi Pad 2, I was shown the message <Failed to Load> under the section 'Action', as well as <N/A> under the section 'API' and 'Target'.
As I am new to this forum too, I am unable to post screenshots of my problem.
I hope I can get some solutions here
Hi, how can i compile apk in android studio when i get this error:
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
This happened when i try to use Appodeal SDK. They have 3 versions, normal, multidex and multidex over 64k methods. I tried all of them, same error. Version with 64k methods works fine, but when i tried to use image button and android studio download some libraries to use it, then this problem appear on this only working SDK too, now i can't use it.
Exist any fix for it, or any way how to disable multidex?
Hello All,
I am new with programming for Android and could use some help compiling someone else's code I have as I am attempting to test a older App for educational use and debugging experience. I have not yet been able to get the code to run, and I have done some searches and tried a few approaches already without luck so I am just hoping someone may point me in to the right direction of what I am missing.
I believe most of my issues may lie in versioning of old dependencies so I have been trying to compile with older version of Android Studio (as well as current version initially) along with matching versions of Gradle and React-Native, all without luck. Here are the version details I can see from the code...
From looking at the code I know it is using:
React-Native 0.53.3
Yarn Package Manager
Gradle 2.2.3
From Top level build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
....
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
From sub level build.gradle:
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
From gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
At this point I have multiple copies of the code that I have tried different gradle versions and react-native versions along with current and older Android studio with a plethora of different compile issues with each setup that I have not been able to solve so I think it may be best for me to start again with a clean version of the code as a new AS project, and I hope some of you more experienced guys might be able to point me in the right direction for setting this up to get it to compile.
Should I try again to match the original AS version, Gradle Version, and React Native version the code was written for? Is their anything I am missing or just try to compile from there and debug errors that arise?
I just did a Quick test on Studio 2.3.3 - I select import gradle and select the build.gradle from the source code.
Error79, 0) Could not read script 'C:\...\node_modules\react-native\react.gradle' as it does not exist."
I then run npm install in project root directory
Sync Gradle Build and run I get:
"Unable to load script from assets 'index.android.bundle' Make sure your bundle is package correctly or your running a packager server"
Build errors on Studio 3.3.1:
> "ERROR: Could not get unknown property 'mergeResourcesProvider' for
> object of type
> com.android.build.gradle.internal.api.ApplicationVariantImpl."
Any help and suggestions are truly appreciated!
Hi there.
I have successfully built my application under gradle against android auto aosp. Now I want to integrate it via soong blueprint.
During integration, i faced with a few code reorganizations issues:
1) For instrumentation tests I had instrumentation integrated in my package however AOSP seems to suggest to separate it from my package with own bp and manifest that is basically mentioned here:
Self-Instrumenting Tests Example | Android Open Source Project
source.android.com
am I correct to do so or I could somehow remain my package structure?
2) I faced with rather small issue:
Code:
Attribute [email protected] value=(false) from AndroidManifest.xml:12:18-51
is also present at AndroidManifest.xml:19:47-79 value=(true).
Suggestion: add 'tools:replace="android:extractNativeLibs"' to <application> element at AndroidManifest.xml:12:5-24:19 to override.
?
But once I tried to fix it via suggested tools:replace and added
Code:
xmlns:tools="http://schemas.android.com/tools"
and
tools:replace="android:extractNativeLibs"
i obtained another errors like
Code:
error: '' is incompatible with attribute type (attr) enum [linear=0, radial=1, sweep=2].
error: '' is incompatible with attribute startX (attr) float.
seems AOSP doesn't understand xmlns:tools anymore... Has anyone faced with this issue?
Hello all,
Wondering if I'm the only one with this issue. I'm trying to generate a signed APK using Android Studio (Build->Generate Signed Bundle / APK...).
However, during the process, an exception is thrown:
Code:
2022-07-19 14:57:49,526 [ 337069] ERROR - intellij.openapi.progress.Task - sun/misc/BASE64Encoder
java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
This is with the JRE that ships with Android Studio.
I dug into this a bit and found in places that this is a problem caused by running Java 11, since this class was deprecated in Java 9. However, when I run Android Studio with Java 8, it won't load since it complains about needing a later version of Java.
Does anybody else have this problem? Any suggested work-around/hacks for this?
Incidentally - I'm running on Ubuntu, and tried it with the OpenJDK version 8. Haven't tried with the Oracle version of Java yet.
Thanks!