Android app crashes with out error with AndroidX library - java

I was using the legacy Library but when I used the new androidX library and make any app it just crashes without errors, I have tried logcat without any filters but still shows no error.
CompiledSdk 33
buoldTools 33.0.0
MinSdkVersion 21
maxSdkVersion 33
androidX.appcompat:appcompat:1.5.1
junit 4.12
androidX.test 1.1.4
androidX.test.espresso 3.5.0
Android studio 4
Build 193.6911.18.40.6514223 May 20, 2020
I have tried the latest version of Android studio for Linux but same result. Any help

Related

The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I am trying to upgrade the targetSdkVersion of the APP I am in charge of from 30 to 31.
I keep getting this error when I try to install it on my test cell phone:
I looked through the logcat by referring to other articles with similar symptoms, but there is no 271rd line in my manifests.
Below is my logcat error part.
I added android, exported to all items in manifest, upgraded Gradle Version to 6.1.1 and Gradle plugin to 4.0.1 but I still get this error.
There are no capital letters in the path.

Android SDK sources : Source code does not match bytecode

SDK versions:
compile SDK version : 27
target SDK version : 27
min SDK version : 23
Samsung tablet SDK version : 25 (Android 7.1.1)
I have sources installed for SDK version 25 and 27, but when stepping into SDK code I get an error "Byte code doesn't match source code". The source file opened is for SDK version 25.
This only happens for some android modules (android.widget, android.app) while others work fine (android.os).
The app source also contains some legacy and deprecated features.
Is there a way to
a) Find out what causes the mismatch or
b) Switch to decompiled source code
Its better to restart your android studio and make a clean fixed it for me

Android SDK issues?

I imported my project recently. I face the issue that is sometime It can not reference Android Java class.
and more ..
But when I open the Android SDK code. The missing class is available. Does anyone know why it says "Cannot resolve symbol"
I also tried to invalidate Android Studio Caches and Restart but it still has the issues.
Gradle build errors:
Check which android sdk you are compiling for compatibility with. Though you may be targetting 21, if you are requesting compatibility with an older version it will not let you use new classes. If that is the case, up the minSdkVersion setting in your gradle file, such as to
minSdkVersion 21

android-support-v7-appcompat error on eclipse [duplicate]

After upgrading to Android Studio 1.3.1 yesterday, Getting this error when building projects, I cannot create a new project. Adding error and build.gradle file below :
Alredy tried changing compileSdkVersion and buildToolVersion to 21.
Every major revision of the Support Library, such as the 23.0.0 AppCompat you are using, compiles against the API level of the same number: i.e., API 23 as per this G+ post from the AppCompat developer. Therefore to use 23.0.0, you must update your compileSdkVersion to 23.
Note this is completely different from targeting API 23 (which can be done separately and is what is required to use the runtime permissions model).

no ManiActivty.java, acticity_main.xml, nor R.java ( when creating new android application project )

When I tried to create a new android application project, it didn't create ManiActivty.java, acticity_main.xml, nor R.java (there's only BuildConfig.java on the gen package)
and the AndroidManifest is like this:
http://i.stack.imgur.com/r8mIR.png
I've tried almost everything (checked that the Android Private Libraries and Android Dependencies in the java build path are checked, deleted gen and cleaned the project, restarting eclipse, reinstalling eclipse, tried with different Minimum Required SDK(with or without appcompat_v7) , but NONE of these were useful...
My ADT version is updated.
On the SDK manager I installed:
Android SDK tools Rev. 24
Android SDK Platform-tools Rev. 21
Android SDK Build-tools Rev. 21.1.1
Android 4.0 (API 14)
Android Support Repository Rev. 9
Android Support Library Rev.21.0.2 (also tried to reinstall it 2 times)
Google Repository Rev. 14
Google USB Driver Rev. 11
Windows 7 (64-bit)
and I have the latest version of java, and eclipse version: Luna Service Release 1 (4.4.1)
please help.
Please note that ADT is no longer officially updated. Instead of solving this particular problem, I would suggest switching to Android Studio (which is now version 1.0) for stability and support.
And to be less official - leave ADT alone, it is outdated and will cause you more problems in the future. As an experienced developer I strongly encourage you to switch to Android Studio, you will not regret. Also, you may still use your existing SDK files with Studio, you won't have to download all this again :-)

Categories