小编Har*_*rry的帖子

找不到aapt2-proto.jar

看到这个链接(我怀疑)有POM文件,没有jar.

重要笔记:

  • 我正在使用最新版本的react native ... v0.57.3以及当时的react-native-cli ... v2.0.1的最新版本.
  • 我的计算机上安装了Java 11.
  • 我现在正在使用最新的 gradle版本... v4.10.2
  • 我正在使用Mac OSX Mojave

分发网址是:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
Run Code Online (Sandbox Code Playgroud)

这是错误

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'AwesomePlacesApp'.
> 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
Run Code Online (Sandbox Code Playgroud)

android android-studio jcenter react-native aapt2

30
推荐指数
2
解决办法
1万
查看次数

Heroku:将节点更新到最新版本

我想在我的本地计算机上将节点版本更新为最新版本.我正在使用Ubuntu 16.04.我目前很难用我最了解的方法更新.请注意,这heroku-cli是最新的(截至目前).

$ check-node-version
node: 8.3.0
npm: 5.4.2
yarn: 1.2.1
Run Code Online (Sandbox Code Playgroud)

以下是其他可能有用的重要命令

harman@manchanda: 04:14 pm ~ $ node -v
v8.3.0

harman@manchanda: 04:14 pm ~ $ which node
/usr/local/heroku/bin/node

harman@manchanda: 04:15 pm ~ $ nodejs -v
v8.7.0

harman@manchanda: 04:15 pm ~ $ which nodejs
/usr/bin/nodejs

harman@manchanda: 04:15 pm ~ $ heroku -v
heroku-cli/6.14.34-1fcf80e (linux-x64) node-v8.6.0

harman@manchanda: 04:15 pm ~ $ n
node/6.2.2
node/6.7.0
node/7.0.0
node/7.8.0
node/7.9.0
node/8.4.0
node/8.7.0
Run Code Online (Sandbox Code Playgroud)

如果需要任何其他信息,请告诉我吗?

javascript heroku node.js n heroku-cli

5
推荐指数
1
解决办法
1471
查看次数