[Android-tools-devel] last error in -tools-base: Could not find com.android.tools.analytics-library:protos:.

殷啟聰 seamlikok at gmail.com
Fri Jan 20 14:00:31 UTC 2017


Oops, the repo is now accessible worldwide.

lint-cli was in 2.0.0, if I remember it correctly. But since lint is
executed every time we run `gradle assemble`, it would be probably
tricky to disable it.

Currently all JARs are inside one libjacoco-java package, it won't
introduce NEW packages so it's fine.

2017-01-20 20:38 GMT+08:00 Hans-Christoph Steiner <hans at at.or.at>:
>
> I pushed some of my commits to a new fork:
>
> https://gitlab.com/eighthave/debianpkg-android-platform-tools-base
>
> Also, it looks like there is a required dep that is not in stretch:
>
>   compile 'org.jacoco:org.jacoco.report:0.7.5.201505241946'
>
> .hc
>
> 殷啟聰:
>> Hi Hans,
>>
>> Did you test if it builds and can be used in android-platform-tools-base?
>>
>> I also did some work by including the necessary components of
>> intellij-community and also some external dependencies into
>> debian/additionalSrc. Now lint-api builds but lint-cli shows errors.
>> Here are the things left to to:
>>
>>   1. Most classes in package `com.android.tools.lint.psi` do not
>> implement every methods of PsiElement. I don't know why they do this
>> and still can compile the code. Maybe we can disable the entire
>> `com.android.tools.lint.psi` package.
>>   2. I also included intellij's custom version of trove3 but I also
>> spotted Markus's patch about trove3. I think we can also patch the
>> code of intellij and remove this custom trove3.
>>
>> I put my code on the `2.2.2` branch of
>> <https://gitlab.com/seamlik/debianpkg_android-platform-tools-base>.
>>
>> Cheers,
>> Kai-Chung Yan
>>
>> 2017-01-16 22:55 GMT+08:00 Hans-Christoph Steiner <hans at at.or.at>:
>>>
>>> I started working on building a standalone uast.jar with the extra bits.
>>>  It seems doable, but not trivial.  Here's my work so far:
>>>
>>> https://gitlab.com/eighthave/intellij-psi
>>>
>>> For now, its just a maven build.  Once it builds, then it should be easy
>>> to include it in the package.  I imagine that we could skip the Ecj*
>>> stuff since that's for the Eclipse compiler.  But lint might still be
>>> using the Eclipse compiler even when not running in Eclipse.
>>>
>>> .hc
>>>
>>> 殷啟聰:
>>>> Hi,
>>>>
>>>> The error is due to we didn't specify a version for the
>>>> analytics-library dependencies, and I have fixed it.
>>>>
>>>> However this error is nowhere near the last one. So far I conclude
>>>> that we at least need to do the following in in order to be able to
>>>> build android-platform-tools-base 2.2.2:
>>>>
>>>>   * Package [1] and [2] from IntelliJ IDEA (mostly com.intellij.psi
>>>> package) - Needed by linter-api
>>>>
>>>> Would be quite tricky since soft freeze disallow new packages and
>>>> IntelliJ IDEA is a huge pacakge.
>>>>
>>>> [1]: https://github.com/JetBrains/intellij-community/tree/master/java/java-psi-api
>>>> [2]: https://github.com/JetBrains/intellij-community/blob/master/platform/util/src/com/intellij/openapi/util/TextRange.java
>>>>
>>>> 2017-01-14 16:16 GMT+08:00 殷啟聰 <seamlikok at gmail.com>:
>>>>> Hi Hans,
>>>>>
>>>>> I'm looking at the codes. First I'll need to re-import the upstream
>>>>> since the binary files are not excluded in "master" branch.
>>>>>
>>>>> 2016-12-29 19:38 GMT+08:00 Hans-Christoph Steiner <hans at at.or.at>:
>>>>>>
>>>>>> I just uploaded jimfs to NEW, which is required by
>>>>>> android-platform-tools-base v2.2.2.  That's the final dep required for
>>>>>> the 2.2.2 upgrade.  We can't ship stretch with v2.0.0 since that does
>>>>>> not work at all with gradle-3.x.  It exits with an error saying using
>>>>>> gradle 2.10, and stretch does not ship gradle 2.x.  I think we'll get
>>>>>> these updates into stretch past the freeze since all of these packages
>>>>>> need to be the right versions to work together.
>>>>>>
>>>>>> This is the last error in the android-platform-tools-base update, which
>>>>>> is totally stumping me:
>>>>>>
>>>>>> * Where:
>>>>>> Script
>>>>>> '/export/share/code/android-tools/android-platform-tools-base/debian/generateClasspath.gradle'
>>>>>> line: 10
>>>>>>
>>>>>> * What went wrong:
>>>>>> Execution failed for task ':base:builder:generateClasspath'.
>>>>>>> Could not resolve all dependencies for configuration ':base:builder:runtime'.
>>>>>>    > Could not find com.android.tools.analytics-library:protos:.
>>>>>>      Searched in the following locations:
>>>>>>
>>>>>> file:/usr/share/maven-repo/com/android/tools/analytics-library/protos//protos-.pom
>>>>>>
>>>>>> file:/usr/share/maven-repo/com/android/tools/analytics-library/protos//protos-.jar
>>>>>>      Required by:
>>>>>>          project :base:builder
>>>>>>    > Could not find com.android.tools.analytics-library:shared:.
>>>>>>      Searched in the following locations:
>>>>>>
>>>>>> file:/usr/share/maven-repo/com/android/tools/analytics-library/shared//shared-.pom
>>>>>>
>>>>>> file:/usr/share/maven-repo/com/android/tools/analytics-library/shared//shared-.jar
>>>>>>      Required by:
>>>>>>          project :base:builder
>>>>>>    > Could not find com.android.tools.analytics-library:tracker:.
>>>>>>      Searched in the following locations:
>>>>>>
>>>>>> file:/usr/share/maven-repo/com/android/tools/analytics-library/tracker//tracker-.pom
>>>>>>
>>>>>> file:/usr/share/maven-repo/com/android/tools/analytics-library/tracker//tracker-.jar
>>>>>>      Required by:
>>>>>>          project :base:builder
>>>>>>          project :base:builder > project :base:profile
>>>>>>
>>>>>>
>>>>>> Here's jimfs:
>>>>>> https://anonscm.debian.org/git/pkg-java/jimfs.git
>>>>>>
>>>>>> I've never done a maven or gradle package before, so both of these could
>>>>>> use some proper style from someone who knows it.
>>>>>>
>>>>>> .hc
>>>>>>
>>>>>> _______________________________________________
>>>>>> Android-tools-devel mailing list
>>>>>> Android-tools-devel at lists.alioth.debian.org
>>>>>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/android-tools-devel



More information about the Android-tools-devel mailing list