tijder / SmsMatrix

A simple SMS <--> Matrix bridge.
https://matrix.to/#/#smsmatrix:matrix.org
GNU General Public License v3.0
214 stars 37 forks source link

Could not find aapt2-proto.jar #34

Closed Rudloff closed 5 years ago

Rudloff commented 5 years ago

Hello,

When trying to build this app with Gradle, I get the following error:

A problem occurred configuring root project 'SmsMatrix'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar

As explained here, these changes seem to fix it:

diff --git a/build.gradle b/build.gradle
index ae9fbaf..ecd45f4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,8 +2,8 @@

 buildscript {
     repositories {
-        jcenter()
         google()
+        jcenter()
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.2.1'
@@ -15,8 +15,8 @@ buildscript {

 allprojects {
     repositories {
-        jcenter()
         google()
+        jcenter()
     }
 }
tijder commented 5 years ago

I have changed it in commit 38b08a7b877f2f4f9af9711ae8f91b093b808274.

Rudloff commented 5 years ago

It builds correctly now, thanks!