NoClassDefFound Exception SolutionAndroidStudio 0.8.2 Run App or Debug App failsAndroid blackbox test, cannot find test target classCannot open layout in Android StudioAndroid CheckBoxPreference minmum sdk versionenable Firebase Crash Reporting in AndroidHow to display Map on emulatorError:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor'Kotlin fails to compile a libraryAndroid Studio 3.2.1 - New project fails to runCould not find class 'dalvik.system…'
What linear sensor for a keyboard?
Global amount of publications over time
Freedom of speech and where it applies
Is there a conventional notation or name for the slip angle?
Can a significant change in incentives void an employment contract?
We have a love-hate relationship
Visiting the UK as unmarried couple
Could the E-bike drivetrain wear down till needing replacement after 400 km?
Some numbers are more equivalent than others
How to color a curve
Diode in opposite direction?
How to decide convergence of Integrals
Sampling Theorem and reconstruction
Difference between -| and |- in TikZ
Should I install hardwood flooring or cabinets first?
Find last 3 digits of this monster number
Why did the HMS Bounty go back to a time when whales are already rare?
Drawing ramified coverings with tikz
Is possible to search in vim history?
Did arcade monitors have same pixel aspect ratio as TV sets?
Customize circled numbers
Gibbs free energy in standard state vs. equilibrium
Engineer refusing to file/disclose patents
How can "mimic phobia" be cured or prevented?
NoClassDefFound Exception Solution
AndroidStudio 0.8.2 Run App or Debug App failsAndroid blackbox test, cannot find test target classCannot open layout in Android StudioAndroid CheckBoxPreference minmum sdk versionenable Firebase Crash Reporting in AndroidHow to display Map on emulatorError:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor'Kotlin fails to compile a libraryAndroid Studio 3.2.1 - New project fails to runCould not find class 'dalvik.system…'
When I run my app on android version 6 and above it run perfect but on version <6 it gives an error
"java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/graphics/drawable/VectorDrawableCompat;".
I have one app on two different paths when I run from the first path it gives an error mentioned above but from another path, it runs perfectly.
why can anyone give me a solution?
this is my gradle
android
compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig
applicationId "xxx.xxx.xxx"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
sourceSets.main
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
repositories
maven url "https://maven.google.com"
dependencies
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:support-v13:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.5'
testCompile 'junit:junit:4.12'
android
add a comment |
When I run my app on android version 6 and above it run perfect but on version <6 it gives an error
"java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/graphics/drawable/VectorDrawableCompat;".
I have one app on two different paths when I run from the first path it gives an error mentioned above but from another path, it runs perfectly.
why can anyone give me a solution?
this is my gradle
android
compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig
applicationId "xxx.xxx.xxx"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
sourceSets.main
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
repositories
maven url "https://maven.google.com"
dependencies
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:support-v13:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.5'
testCompile 'junit:junit:4.12'
android
Can you post your gradle file ?
– Maxouille
Mar 7 at 9:13
no i don't post gridle
– Rohit Singh
Mar 7 at 9:53
1
@RohitSingh so you want people to help you but you don't want to provide any information that helps them?
– ZUNJAE
Mar 7 at 10:15
you take another mine of my words i provide my gradle file ok
– Rohit Singh
Mar 7 at 10:24
Edit your first post, it's unreadable.
– Maxouille
Mar 7 at 10:45
add a comment |
When I run my app on android version 6 and above it run perfect but on version <6 it gives an error
"java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/graphics/drawable/VectorDrawableCompat;".
I have one app on two different paths when I run from the first path it gives an error mentioned above but from another path, it runs perfectly.
why can anyone give me a solution?
this is my gradle
android
compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig
applicationId "xxx.xxx.xxx"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
sourceSets.main
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
repositories
maven url "https://maven.google.com"
dependencies
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:support-v13:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.5'
testCompile 'junit:junit:4.12'
android
When I run my app on android version 6 and above it run perfect but on version <6 it gives an error
"java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/graphics/drawable/VectorDrawableCompat;".
I have one app on two different paths when I run from the first path it gives an error mentioned above but from another path, it runs perfectly.
why can anyone give me a solution?
this is my gradle
android
compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig
applicationId "xxx.xxx.xxx"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
sourceSets.main
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
repositories
maven url "https://maven.google.com"
dependencies
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:support-v13:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.5'
testCompile 'junit:junit:4.12'
android
android
edited Mar 8 at 6:03
Rohit Singh
asked Mar 7 at 9:09
Rohit SinghRohit Singh
22
22
Can you post your gradle file ?
– Maxouille
Mar 7 at 9:13
no i don't post gridle
– Rohit Singh
Mar 7 at 9:53
1
@RohitSingh so you want people to help you but you don't want to provide any information that helps them?
– ZUNJAE
Mar 7 at 10:15
you take another mine of my words i provide my gradle file ok
– Rohit Singh
Mar 7 at 10:24
Edit your first post, it's unreadable.
– Maxouille
Mar 7 at 10:45
add a comment |
Can you post your gradle file ?
– Maxouille
Mar 7 at 9:13
no i don't post gridle
– Rohit Singh
Mar 7 at 9:53
1
@RohitSingh so you want people to help you but you don't want to provide any information that helps them?
– ZUNJAE
Mar 7 at 10:15
you take another mine of my words i provide my gradle file ok
– Rohit Singh
Mar 7 at 10:24
Edit your first post, it's unreadable.
– Maxouille
Mar 7 at 10:45
Can you post your gradle file ?
– Maxouille
Mar 7 at 9:13
Can you post your gradle file ?
– Maxouille
Mar 7 at 9:13
no i don't post gridle
– Rohit Singh
Mar 7 at 9:53
no i don't post gridle
– Rohit Singh
Mar 7 at 9:53
1
1
@RohitSingh so you want people to help you but you don't want to provide any information that helps them?
– ZUNJAE
Mar 7 at 10:15
@RohitSingh so you want people to help you but you don't want to provide any information that helps them?
– ZUNJAE
Mar 7 at 10:15
you take another mine of my words i provide my gradle file ok
– Rohit Singh
Mar 7 at 10:24
you take another mine of my words i provide my gradle file ok
– Rohit Singh
Mar 7 at 10:24
Edit your first post, it's unreadable.
– Maxouille
Mar 7 at 10:45
Edit your first post, it's unreadable.
– Maxouille
Mar 7 at 10:45
add a comment |
1 Answer
1
active
oldest
votes
As said in the documentation of VectorDrawableCompat, This class was added on the API 24. Which, according to the correspondence table, is Android 7.0.
So it's the expected behaviour that the class is not found on Android below 6.0
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55039911%2fnoclassdeffound-exception-solution%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As said in the documentation of VectorDrawableCompat, This class was added on the API 24. Which, according to the correspondence table, is Android 7.0.
So it's the expected behaviour that the class is not found on Android below 6.0
add a comment |
As said in the documentation of VectorDrawableCompat, This class was added on the API 24. Which, according to the correspondence table, is Android 7.0.
So it's the expected behaviour that the class is not found on Android below 6.0
add a comment |
As said in the documentation of VectorDrawableCompat, This class was added on the API 24. Which, according to the correspondence table, is Android 7.0.
So it's the expected behaviour that the class is not found on Android below 6.0
As said in the documentation of VectorDrawableCompat, This class was added on the API 24. Which, according to the correspondence table, is Android 7.0.
So it's the expected behaviour that the class is not found on Android below 6.0
answered Mar 7 at 9:23
vincrichaudvincrichaud
1,7941025
1,7941025
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55039911%2fnoclassdeffound-exception-solution%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you post your gradle file ?
– Maxouille
Mar 7 at 9:13
no i don't post gridle
– Rohit Singh
Mar 7 at 9:53
1
@RohitSingh so you want people to help you but you don't want to provide any information that helps them?
– ZUNJAE
Mar 7 at 10:15
you take another mine of my words i provide my gradle file ok
– Rohit Singh
Mar 7 at 10:24
Edit your first post, it's unreadable.
– Maxouille
Mar 7 at 10:45