Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project does not compile with Android Studio v3.1.3 #175

Open
protonforest opened this issue Jul 22, 2018 · 4 comments
Open

Project does not compile with Android Studio v3.1.3 #175

protonforest opened this issue Jul 22, 2018 · 4 comments

Comments

@protonforest
Copy link

Using latest version of Android Studio, the project does not compile.

"Unsupported method: BaseConfig.getApplicationIdSuffix().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
"

Please advise.

@protonforest
Copy link
Author

Have tried both Mac and PC

@protonforest protonforest changed the title Project does not compile with Android Project does not compile with Android Studio Jul 22, 2018
@protonforest protonforest changed the title Project does not compile with Android Studio Project does not compile with Android Studio v3.1.3 Jul 22, 2018
@protonforest
Copy link
Author

Here is the solution for this problem :

  1. In build.gradle, change classpath to "classpath 'com.android.tools.build:gradle:2.3.2'
  2. To the top "Try again"
  3. You should see a new error in red in the Build Tab towards the bottom
    "The SDK Build Tools revision (22.0.0) is too low for project ':app'. Minimum required is 25.0.0
    Install Build Tools 25.0.0, update version in build file and sync project
    Open File"
    Click the "Install Build Tools 25.0.0"...Let it download and install. It will auto-build when finished.
  4. You should see a similar error again: "The SDK Build Tools revision (22.0.0) is too low for project ':webrtc-client'. Minimum required is 25.0.0. Update Build Tools version and sync project
    Open File".
    Notice the "webrtc-client" instead of app. Select "Update Build tools..."
    Step 5: A window should pop up. Select Update.

Step 6: You will see more errors in the Build tab. Working through them 1 by 1. Update everything.
Step 7 (optional): Update the word "compile" to "implementation in your build.gradle under app/.

Step 8: Run your app. I recommend you download an older image of android. The latest version of Lollipop is sufficient for most applications. You can change this later easily. Let it install. Run the app on the lollipop image. Done.

@protonforest
Copy link
Author

Should I submit this to the ReadMe in a PR?

@j796160836
Copy link
Contributor

I solved the problem. PR is here #178.


Here is the steps,

  1. Upgrade to com.android.tools.build:gradle from 1.x.x to 2.3.2 then sync the project.
  2. Follow the prompt to upgrade CompileSdkVersion from older version to 25 then sync the project again.
  3. After sync project, follow the prompt and update everything, including upgrade com.android.tools.build:gradle to 3.1.4.

References:
https://stackoverflow.com/questions/44546849/unsupported-method-baseconfig-getapplicationidsuffix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants