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
Getting this error when include weather view in other activities xml. #14
Comments
@shubhtrino Could you give more of the log (or the entire log) in a Gist please? That snippet doesn't help much. |
… On Wed, Nov 8, 2017 at 9:58 PM, Mitchell Skaggs ***@***.***> wrote:
@shubhtrino <https://github.com/shubhtrino> Could you give more of the
log (or the entire log) in a Gist please? That snippet doesn't help much.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ad-asDequDIl7kuhaDhkuEmK3I1Vob_cks5s0damgaJpZM4QWn_e>
.
|
@shubhtrino Are you using proguard? If so, can you add |
NO not using proguard..
…On Wed, Nov 8, 2017 at 10:04 PM, Mitchell Skaggs ***@***.***> wrote:
@shubhtrino <https://github.com/shubhtrino> Are you using proguard? If
so, can you add -keep,includedescriptorclasses com.github.matteobattilana.
weather.** to your proguard-rules.pro file and rebuild?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ad-asNmZkt_eCWvba9Yar24Hj7SW7C9Hks5s0dgVgaJpZM4QWn_e>
.
|
@shubhtrino Are you absolutely sure you're not using ProGuard or any other shrinking system? That tends to produce this exact type of error. What version of WeatherView, Android, and Android Studio are you using? |
compile 'com.github.MatteoBattilana:WeatherView:2.0.1'
studio 3.0
api 23
…On Wed, Nov 8, 2017 at 10:11 PM, Mitchell Skaggs ***@***.***> wrote:
@shubhtrino <https://github.com/shubhtrino> Are you absolutely sure
you're not using ProGuard or any other shrinking system? That tends to
produce this exact type of error.
What version of WeatherView, Android, and Android Studio are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ad-asLDNIxUbWPcq35D-R8lCJ3XajgnKks5s0dmzgaJpZM4QWn_e>
.
|
@shubhtrino Is your source code on GitHub somewhere? If not, can you upload a .zip of a simple project that also demonstrates this bug? I can debug it much faster with access to source code that reproduces the issue. |
check main.zip |
If possible, could you include the Gradle build files and Gradle Wrapper in the zip as well? I want to make sure the build environment is as similar as possible to reproduce the issue. |
whole project source code. |
can you please explain me what should i do now ?
…On Wed, Nov 8, 2017 at 10:31 PM, Mitchell Skaggs ***@***.***> wrote:
If possible, could you include the Gradle build files and Gradle Wrapper
in the zip as well? I want to make sure the build environment is as similar
as possible to reproduce the issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ad-asEDsJYxXM_CxcXYX3nLKE1ADxBcIks5s0d5VgaJpZM4QWn_e>
.
|
@shubhtrino Could you confirm that updating to 2.0.2 fixes the issue? If it didn't work, I'll reopen this. |
No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in /data/app/com.example.shubh.yahooweather-2/split_lib_dependencies_apk.apk) now getting this error |
after upgrading to 2.02 |
Could you post the full error? |
FATAL EXCEPTION: main |
Could you update your support libraries and compile version to 27? The latest support libraries are |
And also make sure to clean the project beforehand because sometimes Android leaves some old dependencies behind which can cause dexing errors. |
i just updated support libraries then app is compiling but its not showing
anything .<com.github.matteobattilana.weather.WeatherView
android:id="@+id/weather_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:angle="-3"
app:fadeOutTime="1000"
app:fps="40"
app:lifeTime="2200"
app:numParticles="55"
app:orientationMode="ENABLE"
app:startingWeather="RAIN"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
this is what i have included
On Wed, Nov 8, 2017 at 10:06 PM, shubham gaikwad <shubhdgaikwad@gmail.com>
wrote:
… NO not using proguard..
On Wed, Nov 8, 2017 at 10:04 PM, Mitchell Skaggs ***@***.***
> wrote:
> @shubhtrino <https://github.com/shubhtrino> Are you using proguard? If
> so, can you add -keep,includedescriptorclasses
> com.github.matteobattilana.weather.** to your proguard-rules.pro file
> and rebuild?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#14 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/Ad-asNmZkt_eCWvba9Yar24Hj7SW7C9Hks5s0dgVgaJpZM4QWn_e>
> .
>
|
not showing any effect .
On Wed, Nov 8, 2017 at 11:32 PM, shubham gaikwad <shubhdgaikwad@gmail.com>
wrote:
… i just updated support libraries then app is compiling but its not showing
anything .<com.github.matteobattilana.weather.WeatherView
android:id="@+id/weather_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:angle="-3"
app:fadeOutTime="1000"
app:fps="40"
app:lifeTime="2200"
app:numParticles="55"
app:orientationMode="ENABLE"
app:startingWeather="RAIN"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
this is what i have included
On Wed, Nov 8, 2017 at 10:06 PM, shubham gaikwad ***@***.***>
wrote:
> NO not using proguard..
>
> On Wed, Nov 8, 2017 at 10:04 PM, Mitchell Skaggs <
> ***@***.***> wrote:
>
>> @shubhtrino <https://github.com/shubhtrino> Are you using proguard? If
>> so, can you add -keep,includedescriptorclasses
>> com.github.matteobattilana.weather.** to your proguard-rules.pro file
>> and rebuild?
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#14 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/Ad-asNmZkt_eCWvba9Yar24Hj7SW7C9Hks5s0dgVgaJpZM4QWn_e>
>> .
>>
>
>
|
Those xml attributes do not do anything anymore, they only were used in the old version. To start an effect, you must call the |
Can you please give some snapshot about that. |
I have a working version of your demo app here: DemoWeatherApp.zip. Do you mean a note about those changes in the migration section of the readme? |
Thank you very much . |
Glad to have helped! |
hello ,I am having a problem enabling orientation in weatherview in Java,
could you please guide me in this...
…On Thu, Nov 9, 2017 at 12:35 AM, Mitchell Skaggs ***@***.***> wrote:
Glad to have helped!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ad-asA_zews1fZ5MUXIB8_XP8NszkSgMks5s0ftmgaJpZM4QWn_e>
.
|
@shubhtrino Have you looked at the sample app? You have to use the |
Unable to start activity ComponentInfo{
android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.github.matteobattilana.weather.WeatherView
The text was updated successfully, but these errors were encountered: