NumberFormatException: Invalid revision: 24.0.0-alpha1: Invalid revision: 24.0.0-alpha1

后端 未结 5 1777
心在旅途
心在旅途 2020-12-30 10:56

Android studio show me error in event log NumberFormatException: Invalid revision: 24.0.0-alpha1: Invalid revision: 24.0.0-alpha1

build.gradle:

    a         


        
相关标签:
5条回答
  • 2020-12-30 11:07

    Hi Actually Svetlana Kuleshova tried to mention was

    try with below procedure

    enter image description here

    and comment the maven pom.xml or maven-metadata.xml

    24.0.0-alpha1 -->
    0 讨论(0)
  • 2020-12-30 11:15

    What i have did to work this fine is updated android studio to latest release and updated gradle.also did following changes in build.gradle

    dependencies {
            classpath 'com.android.tools.build:gradle:2.2.3'
    }
    
    0 讨论(0)
  • 2020-12-30 11:16

    This worked for me.

    In build.gradle of Project (not module) i changed the classpath.

    It now looks like this

    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'
    
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
    

    Hope it helps someone.

    0 讨论(0)
  • 2020-12-30 11:18

    Try this cases if you really need 24.0.0-alpha1:

    1. Replace

      compile 'com.android.support:appcompat-v7:23.0.2'
      compile 'com.android.support:support-v4:23.2.1'
      

    to

        compile 'com.android.support:appcompat-v7:24.0.0-alpha1'
        compile 'com.android.support:support-v4:24.0.0-alpha1'
    
    1. Launch stanalone SDK manager and load Android N, API 23, N preview, after that you need replace

      compileSdkVersion 23
      

    to

        compileSdkVersion 'android-N'
    

    Tell me if it work for you too.

    0 讨论(0)
  • 2020-12-30 11:20

    I had the same problem after SDK update. In my case the solution was to remove 24.0.0-alpha1 folder from sdk/extras/android/m2repository/com/android/support/appcompat-v7 and to delete <version>24.0.0-alpha1</version> line from sdk/extras/android/m2repository/com/android/support/appcompat-v7/maven-metadata.xml

    0 讨论(0)
提交回复
热议问题